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.
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultSliceData
public DefaultSliceData(ChartModel model,
Series series)
- Creates a new DefaultSliceData instance for the specified ChartModel and
data Series.
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