M
- data type used by this seriespublic abstract class AbstractPieSeries<M> extends MultipleColorSeries<M>
Series.LabelPosition
Modifier and Type | Field and Description |
---|---|
protected ValueProvider<? super M,? extends Number> |
angleField |
protected PrecisePoint |
center |
protected double |
donut |
protected double |
margin |
protected double |
radius |
protected ArrayList<Slice> |
slices |
colors
bbox, chart, handlerManager, highlighter, highlighting, labelConfig, labels, lastHighlighted, legendNames, legendTitles, renderer, shadowAttributes, shadowed, shadowGroups, shadowRenderer, shownInLegend, sprites, stroke, strokeWidth, toolTip, toolTipConfig, xField
Constructor and Description |
---|
AbstractPieSeries() |
Modifier and Type | Method and Description |
---|---|
protected List<PathCommand> |
calculateSegment(Slice slice)
Calculates the
PathCommand s for a pie slice using the given
attributes. |
protected Animator |
createSegmentAnimator(PathSprite sprite,
Slice start,
Slice end)
Creates an animator that animates for the starting
Slice to the
ending slice on the given sprite. |
ValueProvider<? super M,? extends Number> |
getAngleField()
Returns the value provider of the pie data.
|
double |
getDonut()
Returns the degree of the pie's donut.
|
LabelProvider<? super M> |
getLegendLabelProvider()
Sets the
LabelProvider used for the legend. |
ArrayList<String> |
getLegendTitles()
Returns the list of titles used in the legend of the series.
|
protected int |
getStoreIndex(int index)
Returns the appropriate index on the store for the given series index.
|
void |
setAngleField(ValueProvider<? super M,? extends Number> angleField)
Sets the value provider of the pie data.
|
void |
setDonut(double donut)
Sets the degree of the pie's donut.
|
void |
setLegendLabelProvider(LabelProvider<? super M> legendLabelProvider)
Sets the
LabelProvider used for the legend. |
<V> void |
setLegendValueProvider(ValueProvider<? super M,V> valueProvider,
LabelProvider<? super V> labelProvider)
Sets the
ValueProvider and LabelProvider used for the
legend. |
addColor, addColor, getColor, getColors, removeColor, removeColor, setColor
addSeriesHandler, addSeriesItemOutHandler, addSeriesItemOverHandler, addSeriesItemUpHandler, addSeriesSelectionHandler, calculateBBox, clear, drawSeries, ensureHandlers, getBBox, getChart, getGutters, getHighlighter, getIndex, getLabelConfig, getLegendNames, getPointFromCommand, getRenderer, getShadowRenderer, getStroke, getStrokeWidth, getToolTip, getToolTipConfig, getValueProvider, getValueProviderName, getXField, hide, hideShadows, hideToolTip, highlight, highlightAll, highlightedState, isHighlighting, isShownInLegend, onMouseDown, onMouseMove, onMouseOut, onMouseUp, removeToolTip, setChart, setHighlighter, setHighlighting, setLabelConfig, setLabelContrast, setLabelText, setRenderer, setShadowRenderer, setShownInLegend, setStroke, setStrokeWidth, setToolTipConfig, setXField, show, unHighlight, unHighlightAll, visibleInLegend
protected PrecisePoint center
protected double donut
protected double radius
protected double margin
protected ValueProvider<? super M,? extends Number> angleField
public ValueProvider<? super M,? extends Number> getAngleField()
public double getDonut()
public LabelProvider<? super M> getLegendLabelProvider()
LabelProvider
used for the legend.public ArrayList<String> getLegendTitles()
Series
getLegendTitles
in class Series<M>
public void setAngleField(ValueProvider<? super M,? extends Number> angleField)
angleField
- the value provider of the pie datapublic void setDonut(double donut)
donut
- the degree of the pie's donutpublic void setLegendLabelProvider(LabelProvider<? super M> legendLabelProvider)
LabelProvider
used for the legend.legendLabelProvider
- the label provider used for the legendpublic <V> void setLegendValueProvider(ValueProvider<? super M,V> valueProvider, LabelProvider<? super V> labelProvider)
ValueProvider
and LabelProvider
used for the
legend.valueProvider
- the value providerlabelProvider
- the legend providerprotected List<PathCommand> calculateSegment(Slice slice)
PathCommand
s for a pie slice using the given
attributes.slice
- the properties of the sliceprotected Animator createSegmentAnimator(PathSprite sprite, Slice start, Slice end)
Slice
to the
ending slice on the given sprite.sprite
- the sprite to be animatedstart
- the starting sliceend
- the ending sliceprotected int getStoreIndex(int index)
Series
getStoreIndex
in class Series<M>
index
- the series indexCopyright © 2018. All rights reserved.