org.jscience.awt
Class Point2DListModel

java.lang.Object
  extended by org.jscience.awt.AbstractGraphModel
      extended by org.jscience.awt.Point2DListModel
All Implemented Interfaces:
Graph2DModel

public final class Point2DListModel
extends AbstractGraphModel
implements Graph2DModel

The Point2DListModel provides a convenient implementation of the Graph2DModel interface based upon a List of Point2D objects.


Constructor Summary
Point2DListModel()
          Creates a new Point2DListModel object.
 
Method Summary
 void firstSeries()
          DOCUMENT ME!
 float getXCoord(int i)
          DOCUMENT ME!
 float getYCoord(int i)
          DOCUMENT ME!
 boolean nextSeries()
          DOCUMENT ME!
 int seriesLength()
          DOCUMENT ME!
 void setData(java.util.List points)
          Sets the list of points to be plotted.
 
Methods inherited from class org.jscience.awt.AbstractGraphModel
addGraphDataListener, fireGraphChanged, fireGraphDataChanged, fireGraphSeriesUpdated, removeGraphDataListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jscience.awt.Graph2DModel
addGraphDataListener, removeGraphDataListener
 

Constructor Detail

Point2DListModel

public Point2DListModel()
Creates a new Point2DListModel object.

Method Detail

setData

public void setData(java.util.List points)
Sets the list of points to be plotted.

Parameters:
points - DOCUMENT ME!

getXCoord

public float getXCoord(int i)
DOCUMENT ME!

Specified by:
getXCoord in interface Graph2DModel
Parameters:
i - DOCUMENT ME!
Returns:
DOCUMENT ME!

getYCoord

public float getYCoord(int i)
DOCUMENT ME!

Specified by:
getYCoord in interface Graph2DModel
Parameters:
i - DOCUMENT ME!
Returns:
DOCUMENT ME!

seriesLength

public int seriesLength()
DOCUMENT ME!

Specified by:
seriesLength in interface Graph2DModel
Returns:
DOCUMENT ME!

firstSeries

public void firstSeries()
DOCUMENT ME!

Specified by:
firstSeries in interface Graph2DModel

nextSeries

public boolean nextSeries()
DOCUMENT ME!

Specified by:
nextSeries in interface Graph2DModel
Returns:
DOCUMENT ME!