|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectJSci.awt.AbstractGraphModel
JSci.awt.DefaultGraph2DModel
public final class DefaultGraph2DModel
The DefaultGraph2DModel class provides a default implementation of the Graph2DModel interface.
| Constructor Summary | |
|---|---|
DefaultGraph2DModel()
|
|
| Method Summary | |
|---|---|
void |
addSeries(double[] newSeries)
Adds a data series for the default x-axis values. |
void |
addSeries(float[] newSeries)
Adds a data series for the default x-axis values. |
void |
addSeries(float[] newXAxis,
float[] newSeries)
Adds a data series. |
void |
changeSeries(int i,
double[] newSeries)
Change 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()
Gets the default x-axis values. |
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)
|
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. |
| 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.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 float[] getXAxis()
public void addSeries(float[] newSeries)
public void addSeries(double[] newSeries)
public void addSeries(float[] newXAxis,
float[] newSeries)
public void changeSeries(int i,
float[] newSeries)
public void changeSeries(int i,
double[] newSeries)
public void removeSeries(int i)
public DataSeries getSeries(int i)
public void setSeriesVisible(int i,
boolean flag)
public float getXCoord(int i)
Graph2DModel
getXCoord in interface Graph2DModelpublic float getYCoord(int i)
Graph2DModel
getYCoord in interface Graph2DModelpublic int seriesLength()
Graph2DModel
seriesLength in interface Graph2DModelpublic void firstSeries()
Graph2DModel
firstSeries in interface Graph2DModelpublic boolean nextSeries()
Graph2DModel
nextSeries in interface Graph2DModel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||