com.odesys.chart.linechart
Class DefaultPointData

java.lang.Object
  |
  +--com.odesys.chart.DefaultElement
        |
        +--com.odesys.chart.linechart.DefaultPointData
All Implemented Interfaces:
ChartElement, PointData

public class DefaultPointData
extends DefaultElement
implements PointData

DefaultPointData is a default implementation of the PointData interface. It is used by the DefaultLineChartModel.


Constructor Summary
DefaultPointData(ChartModel model, Series series)
          Creates a new DefaultPointData instance for the specified ChartModel and data Series.
 
Method Summary
 float getX()
          Gets the X coordinate of this DefaultPointData.
 float getY()
          Gets the Y coordinate of this DefaultPointData.
 void setX(float x)
          Sets the X coordinate of this DefaultPointData.
 void setY(float y)
          Sets the Y coordinate of this DefaultPointData.
 
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

DefaultPointData

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

getX

public float getX()
Gets the X coordinate of this DefaultPointData.
Specified by:
getX in interface PointData
Returns:
The X coordinate of this DefaultPointData.

setX

public void setX(float x)
Sets the X coordinate of this DefaultPointData.
Specified by:
setX in interface PointData

getY

public float getY()
Gets the Y coordinate of this DefaultPointData.
Specified by:
getY in interface PointData
Returns:
The Y coordinate of this DefaultPointData.

setY

public void setY(float y)
Sets the Y coordinate of this DefaultPointData.
Specified by:
setY in interface PointData