|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object JSci.awt.AbstractGraphModel JSci.awt.DefaultCategoryGraph2DModel
public final class DefaultCategoryGraph2DModel
The DefaultCategoryGraph2DModel class provides a default implementation of the CategoryGraph2DModel interface.
Nested Class Summary | |
---|---|
static class |
DefaultCategoryGraph2DModel.DataSeries
The DataSeries class encapsulates a data series for a graph. |
Constructor Summary | |
---|---|
DefaultCategoryGraph2DModel()
|
Method Summary | |
---|---|
void |
addSeries(DefaultCategoryGraph2DModel.DataSeries newSeries)
Adds a data series. |
void |
addSeries(double[] newSeries)
Adds a data series using the default values for the x-axis. |
void |
addSeries(float[] newSeries)
Adds a data series using the default values for the x-axis. |
void |
addSeries(java.lang.Object[] newXAxis,
double[] newSeries)
Adds a data series. |
void |
addSeries(java.lang.Object[] newXAxis,
float[] newSeries)
Adds a data series. |
void |
changeSeries(int i,
DefaultCategoryGraph2DModel.DataSeries newSeries)
Changes a data series. |
void |
changeSeries(int i,
double[] newSeries)
Changes a data series. |
void |
changeSeries(int i,
float[] newSeries)
Changes a data series. |
void |
firstSeries()
Selects the first data series. |
java.lang.String |
getCategory(int i)
Returns the ith category. |
DefaultCategoryGraph2DModel.DataSeries |
getSeries(int i)
|
float |
getValue(int i)
Returns the value for the ith category. |
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 |
setCategories(java.lang.Object[] cat)
Sets the default x-axis values. |
void |
setSeriesVisible(int i,
boolean flag)
Convenience method. |
void |
tableChanged(javax.swing.event.TableModelEvent evt)
Implementation of TabelModelListener. |
Methods inherited from class JSci.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 JSci.awt.CategoryGraph2DModel |
---|
addGraphDataListener, removeGraphDataListener |
Constructor Detail |
---|
public DefaultCategoryGraph2DModel()
Method Detail |
---|
public void setCategories(java.lang.Object[] cat)
public void addSeries(float[] newSeries)
setCategories
first.
public void addSeries(double[] newSeries)
setCategories
first.
public void addSeries(DefaultCategoryGraph2DModel.DataSeries newSeries)
public void addSeries(java.lang.Object[] newXAxis, float[] newSeries)
public void addSeries(java.lang.Object[] newXAxis, double[] newSeries)
public void changeSeries(int i, DefaultCategoryGraph2DModel.DataSeries newSeries)
public void changeSeries(int i, float[] newSeries)
public void changeSeries(int i, double[] newSeries)
public void removeSeries(int i)
public DefaultCategoryGraph2DModel.DataSeries getSeries(int i)
public void setSeriesVisible(int i, boolean flag)
public void tableChanged(javax.swing.event.TableModelEvent evt)
tableChanged
in interface javax.swing.event.TableModelListener
public java.lang.String getCategory(int i)
CategoryGraph2DModel
getCategory
in interface CategoryGraph2DModel
public float getValue(int i)
CategoryGraph2DModel
getValue
in interface CategoryGraph2DModel
public int seriesLength()
CategoryGraph2DModel
seriesLength
in interface CategoryGraph2DModel
public void firstSeries()
CategoryGraph2DModel
firstSeries
in interface CategoryGraph2DModel
public boolean nextSeries()
CategoryGraph2DModel
nextSeries
in interface CategoryGraph2DModel
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |