public class IlvSinglePolylineRenderer extends IlvSingleChartRenderer
AREA, BAR, BUBBLE, CANDLE, CENTERED_LABEL_LAYOUT, COMBO, DATA_LABEL, DEFAULT_LABEL_LAYOUT, DEFAULT_LABELING, HILO, HILO_ARROW, HILO_STICK, HLOC, OUTSIDE_LABEL_LAYOUT, PERCENT_LABEL, PIE, POLYLINE, SCATTER, STACKED_AREA, STACKED_BAR, STACKED_DIVERGING_BAR, STACKED_POLYLINE, STACKED_STAIR, STACKED100_AREA, STACKED100_BAR, STACKED100_POLYLINE, STACKED100_STAIR, STAIR, SUMMED_STAIR, SUPERIMPOSED_BAR, TREEMAP, X_VALUE_LABEL, XY_VALUES_LABEL, Y_VALUE_LABEL
Constructor and Description |
---|
IlvSinglePolylineRenderer()
Creates a new polyline renderer.
|
IlvSinglePolylineRenderer(IlvStyle style)
Creates a new polyline renderer, using the specified style.
|
Modifier and Type | Method and Description |
---|---|
Point |
computeDataLabelLocation(IlvDisplayPoint dp,
Dimension size)
Computes the location of the data label associated with the specified
point.
|
void |
drawLegendSymbol(IlvLegendItem item,
Graphics g,
int x,
int y,
int w,
int h)
Draws the symbol of the given legend item.
|
Paint |
get3DOutlinePaint()
Returns the outline paint used when the renderer is drawn as a 3-D ribbon.
|
double[] |
getDepths()
Returns the front and back depths of the renderer.
|
IlvMarker |
getMarker()
Returns the optional marker drawn by this renderer.
|
int |
getMarkerSize()
Returns the size of the optional marker drawn by this renderer.
|
IlvStyle |
getMarkerStyle()
Returns the rendering style of the optional marker.
|
String |
getZAnnotationText()
Returns the text displayed along the depth axis.
|
boolean |
has3DSupport()
Indicates whether this renderer supports three-dimensional drawing.
|
boolean |
isFilled()
Indicates whether the renderer uses a fill color.
|
void |
set3DOutlinePaint(Paint p)
Sets the outline paint used when the renderer is drawn as a 3-D ribbon.
|
void |
setMarker(IlvMarker marker)
Sets a marker on this renderer.
|
void |
setMarkerSize(int size)
Sets the size of the optional marker drawn by this renderer.
|
void |
setMarkerStyle(IlvStyle style)
Specifies the rendering style of the optional marker.
|
addImageMapAreas, applyDataSetStyle, applyStyles, chartConnected, createLegendItems, dataSetContentsChanged, dataSetPropertyChanged, dataSetsAdded, dataSetsRemoved, draw, draw, drawAnnotations, drawIntoHitmap, drawSelectionHandles, drawSelectionHandles, getAnnotation, getBounds, getBounds, getDefaultLegendText, getDisplayItem, getDisplayPoint, getDisplayStyle, getLegendText, getNearestItem, getNearestPoint, getPreferredMargins, getRenderingHint, getRenderingHint, getStyle, getStyle, getStyles, getXRange, getYRange, getYRange, holdsAnnotations, makeDefaultStyle, set3D, setAnnotation, setAnnotation, setDataPoint, setDisplayPoint, setRenderingHint, setRenderingHint, setStyle, setStyles, toDisplay, toDisplay
applyStyles, applyStyles, collectDisplayItems, computeDataLabel, create, createRenderer, dataSetsChangesBatchEnding, dataSetsChangesBatchStarting, dispose, drawSelectionHandles, drawSelectionHandles, endRendererChanges, findAppropriateColor, fireTreemapFocusEvent, getAnnotation, getBounds, getChart, getChild, getChildCount, getChildIterator, getChildren, getClipRect, getCoordinateSystem, getDataLabeling, getDataLabelLayout, getDataLabelling, getDataSetIndex, getDataSetMainIndex, getDataSetMainRenderer, getDataSource, getDefaultColors, getDefaultLegendTitle, getDisplayItem, getDisplayItems, getLegendStyle, getMinDataSetCount, getName, getNearestItem, getNearestPoint, getParent, getPlotRect, getRenderingHint, getStyle, getVirtualDataSet, getXShift, getYAxisIdx, isDisplayingDataSet, isViewable, isVisible, isVisibleInLegend, reDraw, register, setAnnotation, setDataLabeling, setDataLabelLayout, setDataLabelling, setDataSource, setName, setParent, setRenderingHint, setRenderingHintWithNoDraw, setStyle, setVisible, setVisibleInLegend, setXShift, setYAxisIdx, startRendererChanges, toData, triggerChange
public IlvSinglePolylineRenderer()
public IlvSinglePolylineRenderer(IlvStyle style)
public final IlvMarker getMarker()
public void setMarker(IlvMarker marker)
null
, in which case only the line joining the data points
is drawn.public final int getMarkerSize()
setMarkerSize(int)
public void setMarkerSize(int size)
public IlvStyle getMarkerStyle()
getMarkerStyle()
public void setMarkerStyle(IlvStyle style)
public boolean isFilled()
isFilled
in class IlvSingleChartRenderer
false
.public boolean has3DSupport()
has3DSupport
in interface IlvChart3DSupport
has3DSupport
in class IlvChartRenderer
true
public double[] getDepths()
getDepths
in class IlvChartRenderer
null
if
has3DSupport()
returns false
, or if the renderer is not
added to a chart.IlvChart3DView.getFrontDepth()
,
IlvChart3DView.getBackDepth()
,
IlvChart3DView.setDepthGap(int)
public String getZAnnotationText()
getZAnnotationText
in class IlvSingleChartRenderer
null
if the renderer is a child of a stacked
IlvPolylineChartRenderer
. Otherwise, it returns the
string computed by the IlvSingleChartRenderer.getDefaultLegendText()
method.IlvChart3DView.setZAnnotationVisible(boolean)
public Paint get3DOutlinePaint()
Color.black
.set3DOutlinePaint(java.awt.Paint)
public void set3DOutlinePaint(Paint p)
p
- The outline paint. If set to null
, no outline will
be drawn.public Point computeDataLabelLocation(IlvDisplayPoint dp, Dimension size)
IlvDataLabelAnnotation
class.computeDataLabelLocation
in class IlvChartRenderer
dp
- The considered display point.size
- The size of the label.IlvChartRenderer.setDataLabeling(int)
,
IlvChartRenderer.setDataLabelLayout(int)
public void drawLegendSymbol(IlvLegendItem item, Graphics g, int x, int y, int w, int h)
IlvRendererLegendItem
instances
to draw the item symbol.drawLegendSymbol
in class IlvSingleChartRenderer
item
- The legend item to draw.g
- The graphics context.x
- The symbol x-coordinate.y
- The symbol y-coordinate.w
- The symbol width.h
- The symbol height.IlvRendererLegendItem
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.