public class IlvPolylineChartRenderer extends IlvSimpleCompositeChartRenderer implements IlvSuperimposedRenderer
IlvSinglePolylineRenderer
for
every data set in the connected data source. An IlvPolylineRenderer
supports two representation modes:
SUPERIMPOSED
constant.STACKED
constant.
Modifier and Type | Field and Description |
---|---|
static int |
STACKED
Mode type for stacked polylines.
|
static int |
SUPERIMPOSED
Mode type for superimposed polylines.
|
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 |
---|
IlvPolylineChartRenderer()
Creates a new polyline chart renderer with the
SUPERIMPOSED
mode. |
IlvPolylineChartRenderer(int mode)
Creates a new polyline chart renderer with the specified
mode.
|
Modifier and Type | Method and Description |
---|---|
protected IlvChartRenderer |
createChild(IlvDataSet dataSet)
Creates an instance of
IlvSinglePolylineRenderer to
display the specified data set. |
protected void |
dataSetsAdded(int firstIdx,
int lastIdx,
IlvDataSet[] oldDataSets)
Called when data sets are connected to this renderer.
|
protected void |
dataSetsChangesBatchEnding()
Called when a series of data sets insertions or removals is terminating.
|
protected void |
dataSetsChangesBatchStarting()
Called when a series of data sets insertions or removals is starting.
|
protected void |
dataSetsRemoved(int firstIdx,
int lastIdx,
IlvDataSet[] oldDataSets)
Called when data sets are disconnected from this renderer.
|
IlvMarker |
getMarker()
Returns the marker used to create child polyline renderers.
|
int |
getMarkerSize()
Returns the marker size used to create child polyline renderers.
|
int |
getMode()
Returns the mode of this renderer.
|
IlvSinglePolylineRenderer |
getPolyline(IlvDataSet dataSet)
Returns the child polyline renderer displaying the specified data set.
|
IlvSinglePolylineRenderer |
getPolyline(int idx)
Returns the child polyline renderer displaying the data set at the
specified index.
|
boolean |
has3DSupport()
Indicates whether this renderer supports three-dimensional drawing.
|
boolean |
isAutoTransparency()
Returns whether this renderer should use transparent default colors.
|
boolean |
isStacked100Percent()
Indicates whether the stacking is scaled to
100 . |
boolean |
isStackedByIndex()
Indicates whether the stacking is based on data set indices rather than
on X values.
|
boolean |
isSuperimposed()
Returns whether this renderer is in a superimposed configuration.
|
void |
setAutoTransparency(boolean transparent)
Sets whether this renderer should use transparent default colors.
|
void |
setMarker(IlvMarker marker)
Specifies a marker for the child polyline renderers.
|
void |
setMarker(IlvMarker marker,
int size)
Specifies a marker and its size for the child polyline renderers.
|
void |
setMarkerSize(int size)
Specifies a marker size for the child polyline renderers.
|
void |
setMode(int mode)
Sets the mode of this renderer.
|
void |
setStacked100Percent(boolean stacked100)
Specifies whether the stacking is scaled to
100 . |
void |
setStackedByIndex(boolean stackedByIndex)
Specifies whether the stacking is based on data set indices rather than
on X values.
|
addImageMapAreas, collectDisplayItems, createLegendItems, draw, draw, drawAnnotations, drawIntoHitmap, drawLegendSymbol, drawSelectionHandles, getAnnotation, getBounds, getBounds, getChild, getChild, getChild, getChildCount, getChildIterator, getChildren, getDisplayItem, getDisplayPoint, getLegendText, getNearestItem, getNearestPoint, getRenderingHint, getRenderingHint, getStyle, getStyles, getXRange, getYRange, getYRange, holdsAnnotations, isViewable, setAnnotation, setAnnotation, setDataPoint, setDisplayPoint, setRenderingHint, setRenderingHint, setStyles, updateChildren
applyStyles, applyStyles, applyStyles, chartConnected, computeDataLabel, computeDataLabelLocation, create, createRenderer, dispose, drawSelectionHandles, drawSelectionHandles, drawSelectionHandles, endRendererChanges, findAppropriateColor, fireTreemapFocusEvent, getAnnotation, getBounds, getChart, getClipRect, getCoordinateSystem, getDataLabeling, getDataLabelLayout, getDataLabelling, getDataSetIndex, getDataSetMainIndex, getDataSetMainRenderer, getDataSource, getDefaultColors, getDefaultLegendTitle, getDepths, getDisplayItem, getDisplayItems, getLegendStyle, getMinDataSetCount, getName, getNearestItem, getNearestPoint, getParent, getPlotRect, getPreferredMargins, getRenderingHint, getStyle, getVirtualDataSet, getXShift, getYAxisIdx, isDisplayingDataSet, isVisible, isVisibleInLegend, reDraw, register, set3D, setAnnotation, setDataLabeling, setDataLabelLayout, setDataLabelling, setDataSource, setName, setParent, setRenderingHint, setRenderingHintWithNoDraw, setStyle, setVisible, setVisibleInLegend, setXShift, setYAxisIdx, startRendererChanges, toData, toDisplay, toDisplay, triggerChange
public static final int SUPERIMPOSED
setMode(int)
,
Constant Field Valuespublic static final int STACKED
Two stacking modes are available:
setStacked100Percent(boolean)
method.
Note: This mode works best with data sets whose x-series are sorted
in ascending order (see IlvDataSet.isXValuesSorted()
). If stacking
is performed according to same x values (see setStackedByIndex(boolean)
),
data sets that are not sorted this way will be implicitly sorted for
display, like the class IlvXSortedDataSet
does.
public IlvPolylineChartRenderer()
SUPERIMPOSED
mode.setMode(int)
public IlvPolylineChartRenderer(int mode)
setMode(int)
public final int getMode()
setMode(int)
public void setMode(int mode)
SUPERIMPOSED
,
STACKED
public final IlvMarker getMarker()
public void setMarker(IlvMarker marker)
Note: The existing child renderers are not modified by this
method. Only subsequent calls to createChild(ilog.views.chart.data.IlvDataSet)
will take the
specified marker into account.
public final int getMarkerSize()
public void setMarkerSize(int size)
Note: The existing child renderers are not modified by this
method. Only subsequent calls to createChild(ilog.views.chart.data.IlvDataSet)
will take the
specified marker into account.
public void setMarker(IlvMarker marker, int size)
Note: The existing child renderers are not modified by this
method. Only subsequent calls to createChild(ilog.views.chart.data.IlvDataSet)
will take the
specified marker and size into account.
public boolean isAutoTransparency()
isAutoTransparency
in interface IlvSuperimposedRenderer
public void setAutoTransparency(boolean transparent)
setAutoTransparency
in interface IlvSuperimposedRenderer
public boolean isStacked100Percent()
100
.
This method is only meaningful when the mode of the renderer is
set to STACKED
.setStacked100Percent(boolean)
,
setMode(int)
public void setStacked100Percent(boolean stacked100)
100
.
If stacked100
is set to true
, the sum of all the y-values
for a given x-value is scaled to 100. Each bar represents the
percentage it contributes to this sum.
This method is only meaningful when the mode of the renderer is
set to STACKED
.stacked100
- The new stacking mode.isStacked100Percent()
,
setMode(int)
public boolean isStackedByIndex()
STACKED
.setStackedByIndex(boolean)
,
setMode(int)
public void setStackedByIndex(boolean stackedByIndex)
stackedByIndex
is set to true
, the Y values
are computed by accumulating the Y values with the same index, regardless
of their X values, and the X values of the second, third, etc. data sets
are ignored.
If stackedByIndex
is set to false
, the Y values
are computed by accumulating the Y values with the same X value,
regardless of their index in the data set.
This method is meaningful only when the mode of the renderer is
set to STACKED
.isStackedByIndex()
,
setMode(int)
public boolean has3DSupport()
has3DSupport
in interface IlvChart3DSupport
has3DSupport
in class IlvChartRenderer
true
protected void dataSetsAdded(int firstIdx, int lastIdx, IlvDataSet[] oldDataSets)
dataSetsAdded
in class IlvSimpleCompositeChartRenderer
firstIdx
- The index of the first data set.lastIdx
- The index of the last data set.oldDataSets
- The data sets previously connected to this renderer.IlvCompositeChartRenderer.createChild(ilog.views.chart.data.IlvDataSet)
protected void dataSetsRemoved(int firstIdx, int lastIdx, IlvDataSet[] oldDataSets)
dataSetsRemoved
in class IlvSimpleCompositeChartRenderer
firstIdx
- The index of the first data set.lastIdx
- The index of the last data set.oldDataSets
- The data sets previously connected to this renderer.IlvChartRenderer.isViewable()
protected void dataSetsChangesBatchStarting()
dataSetsChangesBatchStarting
in class IlvChartRenderer
IlvChartRenderer.dataSetsChangesBatchEnding()
protected void dataSetsChangesBatchEnding()
dataSetsChangesBatchEnding
in class IlvChartRenderer
IlvChartRenderer.dataSetsChangesBatchStarting()
public IlvSinglePolylineRenderer getPolyline(IlvDataSet dataSet)
public IlvSinglePolylineRenderer getPolyline(int idx)
protected IlvChartRenderer createChild(IlvDataSet dataSet)
IlvSinglePolylineRenderer
to
display the specified data set.createChild
in class IlvCompositeChartRenderer
dataSet
by the
caller.public boolean isSuperimposed()
isSuperimposed
in interface IlvSuperimposedRenderer
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.