org.jscience.awt
Class ArgandDiagramModel

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

public final class ArgandDiagramModel
extends AbstractGraphModel
implements Graph2DModel

The ArgandDiagramModel provides a convenient implementation of the Graph2DModel interface for creating Argand diagrams using the LineGraph component.


Constructor Summary
ArgandDiagramModel()
          Creates a new ArgandDiagramModel 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(Complex[] z)
          Sets the list of complex numbers 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

ArgandDiagramModel

public ArgandDiagramModel()
Creates a new ArgandDiagramModel object.

Method Detail

setData

public void setData(Complex[] z)
Sets the list of complex numbers to be plotted.

Parameters:
z - 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!