public class IlvPieChartRenderer extends IlvSimpleCompositeChartRenderer
The following figure illustrates the representation modes available for a pie renderer: as a pie on the left, as a doughnut (with a hole size of 25) on the right.
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 |
---|
IlvPieChartRenderer()
Creates a new pie chart renderer.
|
Modifier and Type | Method and Description |
---|---|
protected IlvChartRenderer |
createChild(IlvDataSet dataSet)
Creates an instance of
IlvSinglePieRenderer to
display the specified data set. |
int |
getHoleSize()
Returns the hole size of this pie.
|
IlvSinglePieRenderer |
getPie(IlvDataSet dataSet)
Returns the child pie renderer displaying the specified data set.
|
IlvDataInterval |
getYRange(IlvDataInterval range)
Returns the range of the y-values displayed by this renderer.
|
boolean |
has3DSupport()
Indicates whether this renderer supports three-dimensional drawing.
|
boolean |
isStrokeOn()
Indicates whether the outline of the slices is drawn.
|
void |
setHoleSize(int holeSize)
Sets the size of the hole in a doughnut chart.
|
void |
setStrokeOn(boolean strokeOn)
Specifies whether the outline of the slices is drawn.
|
protected void |
updateChildren()
Called when children have been added or removed from this renderer.
|
dataSetsAdded, dataSetsRemoved
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, holdsAnnotations, isViewable, setAnnotation, setAnnotation, setDataPoint, setDisplayPoint, setRenderingHint, setRenderingHint, setStyles
applyStyles, applyStyles, applyStyles, chartConnected, computeDataLabel, computeDataLabelLocation, create, createRenderer, dataSetsChangesBatchEnding, dataSetsChangesBatchStarting, 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 IlvPieChartRenderer()
public IlvSinglePieRenderer getPie(IlvDataSet dataSet)
public final int getHoleSize()
setHoleSize(int)
public void setHoleSize(int holeSize)
0
and
100
.getHoleSize()
public final boolean isStrokeOn()
setStrokeOn(boolean)
public void setStrokeOn(boolean strokeOn)
strokeOn
- A boolean value indicating whether the outline of the
slices is drawn. This property is used to customize the child renderers.protected void updateChildren()
updateChildren
in class IlvCompositeChartRenderer
protected IlvChartRenderer createChild(IlvDataSet dataSet)
IlvSinglePieRenderer
to
display the specified data set.
Subclasses that override this method must return a child of the
IlvSinglePieRenderer
type, otherwise a
ClassCastException
will be thrown.createChild
in class IlvCompositeChartRenderer
dataSet
by the
caller.public IlvDataInterval getYRange(IlvDataInterval range)
range
and returns
range
. If range
is null
, a new
IlvDataInterval
is allocated.getYRange
in class IlvCompositeChartRenderer
range
- An interval used to store the result. If this parameter
is null
, a new IlvDataInterval
is allocated.public boolean has3DSupport()
has3DSupport
in interface IlvChart3DSupport
has3DSupport
in class IlvChartRenderer
true
if the renderer is connected to a pie chart.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.