com.odesys.chart.piechart
Class DefaultSliceData

java.lang.Object
  |
  +--com.odesys.chart.DefaultElement
        |
        +--com.odesys.chart.piechart.DefaultSliceData
All Implemented Interfaces:
ChartElement, SliceData

public class DefaultSliceData
extends DefaultElement
implements SliceData

DefaultSliceData is a default implementation of the SliceData interface used by the DefaultPieChartModel. Usually the DefaultSliceData instances are accessed through SliceData interface.


Constructor Summary
DefaultSliceData(ChartModel model, Series series)
          Creates a new DefaultSliceData instance for the specified ChartModel and data Series.
 
Method Summary
 float getValue()
          Gets the value of this DefaultSliceData.
 boolean isExploded()
          Checks if this slice is exploded.
 void setExploded(boolean exploded)
          Determines whether this slice should be exploded.
 void setValue(float value)
          Sets the value of this DefaultSliceData.
 
Methods inherited from class com.odesys.chart.DefaultElement
getColor, getLabel, getModel, getSeries, getUserData, setColor, setLabel, setUserData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.odesys.chart.ChartElement
getColor, getLabel, getModel, getSeries, setColor, setLabel
 

Constructor Detail

DefaultSliceData

public DefaultSliceData(ChartModel model,
                        Series series)
Creates a new DefaultSliceData instance for the specified ChartModel and data Series.
Method Detail

setValue

public void setValue(float value)
Sets the value of this DefaultSliceData.
Specified by:
setValue in interface SliceData
Following copied from interface: com.odesys.chart.piechart.SliceData
Parameters:
value - The value of this SliceData.

getValue

public float getValue()
Gets the value of this DefaultSliceData.
Specified by:
getValue in interface SliceData
Returns:
The value of this DefaultSliceData.

setExploded

public void setExploded(boolean exploded)
Determines whether this slice should be exploded.
Specified by:
setExploded in interface SliceData

isExploded

public boolean isExploded()
Checks if this slice is exploded.
Specified by:
isExploded in interface SliceData