com.sencha.gxt.chart.client.chart.series
Class AbstractPieSeries<M>

java.lang.Object
  extended by com.sencha.gxt.chart.client.chart.series.Series<M>
      extended by com.sencha.gxt.chart.client.chart.series.MultipleColorSeries<M>
          extended by com.sencha.gxt.chart.client.chart.series.AbstractPieSeries<M>
Type Parameters:
M - data type used by this series
All Implemented Interfaces:
SeriesHandler.HasSeriesHandlers, SeriesItemOutEvent.HasSeriesItemOutHandlers, SeriesItemOverEvent.HasSeriesItemOverHandlers, SeriesSelectionEvent.HasSeriesSelectionHandlers
Direct Known Subclasses:
GaugeSeries, PieSeries

public abstract class AbstractPieSeries<M>
extends MultipleColorSeries<M>

Abstract class representing the core pie series functionality.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.sencha.gxt.chart.client.chart.series.Series
Series.LabelPosition
 
Constructor Summary
AbstractPieSeries()
           
 
Method Summary
 ValueProvider<M,? extends Number> getAngleField()
          Returns the value provider of the pie data.
 double getDonut()
          Returns the degree of the pie's donut.
 LabelProvider<M> getLegendLabelProvider()
          Sets the LabelProvider used for the legend.
 ArrayList<String> getLegendTitles()
          Returns the list of titles used in the legend of the series.
 void setAngleField(ValueProvider<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<M> legendLabelProvider)
          Sets the LabelProvider used for the legend.
<V> void
setLegendValueProvider(ValueProvider<M,V> valueProvider, LabelProvider<V> labelProvider)
          Sets the ValueProvider and LabelProvider used for the legend.
 
Methods inherited from class com.sencha.gxt.chart.client.chart.series.MultipleColorSeries
addColor, addColor, getColor, getColors, removeColor, removeColor, setColor
 
Methods inherited from class com.sencha.gxt.chart.client.chart.series.Series
addSeriesHandler, addSeriesItemOutHandler, addSeriesItemOverHandler, addSeriesSelectionHandler, calculateBBox, delete, drawSeries, getBBox, getChart, getGutters, getHighlighter, getLabelConfig, getLegendNames, getRenderer, getStroke, getStrokeWidth, getToolTip, getToolTipConfig, getXField, getYAxisPosition, hide, highlight, highlightAll, highlightedState, isHighlighting, isShownInLegend, onMouseDown, onMouseMove, onMouseOut, removeToolTip, setChart, setHighlighter, setHighlighting, setLabelConfig, setRenderer, setShownInLegend, setStroke, setStrokeWidth, setToolTipConfig, setXField, setYAxisPosition, show, unHighlight, unHighlightAll, visibleInLegend
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractPieSeries

public AbstractPieSeries()
Method Detail

getAngleField

public ValueProvider<M,? extends Number> getAngleField()
Returns the value provider of the pie data.

Returns:
the value provider of the pie data

getDonut

public double getDonut()
Returns the degree of the pie's donut.

Returns:
the degree of the pie's donut

getLegendLabelProvider

public LabelProvider<M> getLegendLabelProvider()
Sets the LabelProvider used for the legend.

Returns:
the label provider used for the legend

getLegendTitles

public ArrayList<String> getLegendTitles()
Description copied from class: Series
Returns the list of titles used in the legend of the series.

Overrides:
getLegendTitles in class Series<M>
Returns:
the list of titles used in the legend of the series

setAngleField

public void setAngleField(ValueProvider<M,? extends Number> angleField)
Sets the value provider of the pie data.

Parameters:
angleField - the value provider of the pie data

setDonut

public void setDonut(double donut)
Sets the degree of the pie's donut.

Parameters:
donut - the degree of the pie's donut

setLegendLabelProvider

public void setLegendLabelProvider(LabelProvider<M> legendLabelProvider)
Sets the LabelProvider used for the legend.

Parameters:
legendLabelProvider - the label provider used for the legend

setLegendValueProvider

public <V> void setLegendValueProvider(ValueProvider<M,V> valueProvider,
                                       LabelProvider<V> labelProvider)
Sets the ValueProvider and LabelProvider used for the legend.

Parameters:
valueProvider - the value provider
labelProvider - the legend provider


Copyright © 2011. All Rights Reserved.