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, dataSetsRemovedaddImageMapAreas, 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, setStylesapplyStyles, 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, register, set3D, setAnnotation, setDataLabeling, setDataLabelLayout, setDataLabelling, setDataSource, setName, setParent, setRenderingHint, setStyle, setVisible, setVisibleInLegend, setXShift, setYAxisIdx, startRendererChanges, toData, toDisplay, toDisplay, triggerChangepublic 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 IlvCompositeChartRendererprotected 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 IlvCompositeChartRendererdataSet by the
caller.public IlvDataInterval getYRange(IlvDataInterval range)
range and returns
range. If range is null, a new
IlvDataInterval is allocated.getYRange in class IlvCompositeChartRendererrange - An interval used to store the result. If this parameter
is null, a new IlvDataInterval is allocated.public boolean has3DSupport()
has3DSupport in interface IlvChart3DSupporthas3DSupport in class IlvChartRenderertrue if the renderer is connected to a pie chart.© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.