com.odesys.chart.barchart
Class DefaultBarData

java.lang.Object
  |
  +--com.odesys.chart.DefaultElement
        |
        +--com.odesys.chart.barchart.DefaultBarData
All Implemented Interfaces:
BarData, ChartElement

public class DefaultBarData
extends DefaultElement
implements BarData

DefaultBarData is the default implementation of the BarData interface used by the DefaultBarChartModel.


Constructor Summary
DefaultBarData(ChartModel model, Series series, Series category)
          Creates a new DefaultBarData instance for the specified model, series and category.
 
Method Summary
 Series getCategory()
          Gets the data category this DefaultBarData belongs to.
 float getValue()
          Gets the value of this DefaultBarData.
 void setValue(float value)
          Sets the value of this DefaultBarData.
 
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

DefaultBarData

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

setValue

public void setValue(float value)
Sets the value of this DefaultBarData.
Specified by:
setValue in interface BarData

getValue

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

getCategory

public Series getCategory()
Gets the data category this DefaultBarData belongs to.
Specified by:
getCategory in interface BarData
Returns:
The data category this DefaultBarData belongs to.