JSci.awt
Interface CategoryGraph2DModel

All Known Implementing Classes:
DefaultCategoryGraph2DModel

public interface CategoryGraph2DModel

This is a generic interface for sending data to 2D category graphs.


Method Summary
 void addGraphDataListener(GraphDataListener l)
          Add a listener.
 void firstSeries()
          Selects the first data series.
 java.lang.String getCategory(int i)
          Returns the ith category.
 float getValue(int i)
          Returns the value for the ith category.
 boolean nextSeries()
          Selects the next data series.
 void removeGraphDataListener(GraphDataListener l)
          Remove a listener.
 int seriesLength()
          Returns the number of data points in the current series.
 

Method Detail

addGraphDataListener

public void addGraphDataListener(GraphDataListener l)
Add a listener.


removeGraphDataListener

public void removeGraphDataListener(GraphDataListener l)
Remove a listener.


getCategory

public java.lang.String getCategory(int i)
Returns the ith category.


getValue

public float getValue(int i)
Returns the value for the ith category.


seriesLength

public int seriesLength()
Returns the number of data points in the current series.


firstSeries

public void firstSeries()
Selects the first data series.


nextSeries

public boolean nextSeries()
Selects the next data series. Returns false if there is no next series.