JSci.awt
Class DefaultGraph3DModel

java.lang.Object
  extended by JSci.awt.AbstractGraphModel
      extended by JSci.awt.DefaultGraph3DModel
All Implemented Interfaces:
Graph3DModel

public final class DefaultGraph3DModel
extends AbstractGraphModel
implements Graph3DModel

The DefaultGraph3DModel class provides a default implementation of the Graph3DModel interface.

Version:
1.0
Author:
Mark Hale

Constructor Summary
DefaultGraph3DModel()
           
 
Method Summary
 void addSeries(float[] newSeries)
          Add a data series.
 void changeSeries(int i, float[] newSeries)
          Change a data series.
 void firstSeries()
          Selects the first data series.
 DataSeries getSeries(int i)
           
 float[] getXAxis()
          Get the x-axis values.
 float getXCoord(int i)
          Returns the x coordinate for the ith point.
 float[] getYAxis()
          Get the y-axis values.
 float getYCoord(int i)
          Returns the y coordinate for the ith point.
 float getZCoord(int i)
          Returns the z coordinate for the ith point.
 boolean nextSeries()
          Selects the next data series.
 void removeSeries(int i)
          Remove a data series.
 int seriesLength()
          Returns the number of data points in the current series.
 void setSeriesVisible(int i, boolean flag)
           
 void setXAxis(float[] x)
          Sets the x-axis values.
 void setYAxis(float[] y)
          Sets the y-axis values.
 
Methods inherited from class JSci.awt.AbstractGraphModel
addGraphDataListener, fireDataChanged, removeGraphDataListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface JSci.awt.Graph3DModel
addGraphDataListener, removeGraphDataListener
 

Constructor Detail

DefaultGraph3DModel

public DefaultGraph3DModel()
Method Detail

setXAxis

public void setXAxis(float[] x)
Sets the x-axis values.


getXAxis

public float[] getXAxis()
Get the x-axis values.


setYAxis

public void setYAxis(float[] y)
Sets the y-axis values.


getYAxis

public float[] getYAxis()
Get the y-axis values.


addSeries

public void addSeries(float[] newSeries)
Add a data series.


changeSeries

public void changeSeries(int i,
                         float[] newSeries)
Change a data series.


removeSeries

public void removeSeries(int i)
Remove a data series.


getSeries

public DataSeries getSeries(int i)

setSeriesVisible

public void setSeriesVisible(int i,
                             boolean flag)

getXCoord

public float getXCoord(int i)
Description copied from interface: Graph3DModel
Returns the x coordinate for the ith point.

Specified by:
getXCoord in interface Graph3DModel

getYCoord

public float getYCoord(int i)
Description copied from interface: Graph3DModel
Returns the y coordinate for the ith point.

Specified by:
getYCoord in interface Graph3DModel

getZCoord

public float getZCoord(int i)
Description copied from interface: Graph3DModel
Returns the z coordinate for the ith point.

Specified by:
getZCoord in interface Graph3DModel

seriesLength

public int seriesLength()
Description copied from interface: Graph3DModel
Returns the number of data points in the current series.

Specified by:
seriesLength in interface Graph3DModel

firstSeries

public void firstSeries()
Description copied from interface: Graph3DModel
Selects the first data series.

Specified by:
firstSeries in interface Graph3DModel

nextSeries

public boolean nextSeries()
Description copied from interface: Graph3DModel
Selects the next data series. Returns false if there is no next series.

Specified by:
nextSeries in interface Graph3DModel