|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object JSci.awt.AbstractGraphModel JSci.awt.DefaultGraph2DModel
public final class DefaultGraph2DModel
The DefaultGraph2DModel class provides a default implementation of the Graph2DModel interface.
Nested Class Summary | |
---|---|
static class |
DefaultGraph2DModel.DataSeries
The DataSeries class encapsulates a data series for a graph. |
Constructor Summary | |
---|---|
DefaultGraph2DModel()
|
Method Summary | |
---|---|
void |
addSeries(DefaultGraph2DModel.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(float[] newXAxis,
double[] newSeries)
Adds a data series. |
void |
addSeries(float[] newXAxis,
float[] newSeries)
Adds a data series. |
void |
changeSeries(int i,
DefaultGraph2DModel.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. |
DefaultGraph2DModel.DataSeries |
getSeries(int i)
|
float |
getXCoord(int i)
Returns the x coordinate for the ith point. |
float |
getYCoord(int i)
Returns the y 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)
Convenience method. |
void |
setXAxis(double[] x)
Sets the default x-axis values. |
void |
setXAxis(float[] x)
Sets the default x-axis values. |
void |
setXAxis(float a,
float b,
int n)
Sets the default x-axis values. |
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.Graph2DModel |
---|
addGraphDataListener, removeGraphDataListener |
Constructor Detail |
---|
public DefaultGraph2DModel()
Method Detail |
---|
public void setXAxis(float[] x)
public void setXAxis(double[] x)
public void setXAxis(float a, float b, int n)
a
- start of interval.b
- end of interval.n
- number of values.public void addSeries(float[] newSeries)
setXAxis
first.
public void addSeries(double[] newSeries)
setXAxis
first.
public void addSeries(DefaultGraph2DModel.DataSeries newSeries)
public void addSeries(float[] newXAxis, float[] newSeries)
public void addSeries(float[] newXAxis, double[] newSeries)
public void changeSeries(int i, DefaultGraph2DModel.DataSeries newSeries)
public void changeSeries(int i, float[] newSeries)
public void changeSeries(int i, double[] newSeries)
public void removeSeries(int i)
public DefaultGraph2DModel.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 float getXCoord(int i)
Graph2DModel
getXCoord
in interface Graph2DModel
public float getYCoord(int i)
Graph2DModel
getYCoord
in interface Graph2DModel
public int seriesLength()
Graph2DModel
seriesLength
in interface Graph2DModel
public void firstSeries()
Graph2DModel
firstSeries
in interface Graph2DModel
public boolean nextSeries()
Graph2DModel
nextSeries
in interface Graph2DModel
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |