public final class DefaultCategoryGraph2DModel extends AbstractGraphModel implements CategoryGraph2DModel
Constructor and Description |
---|
DefaultCategoryGraph2DModel() |
Modifier and Type | Method and Description |
---|---|
void |
addSeries(double[] newSeries)
Add a data series.
|
void |
addSeries(float[] newSeries)
Add 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.
|
java.lang.Object[] |
getCategories()
Get the x-axis values.
|
java.lang.String |
getCategory(int i)
Returns the ith category.
|
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 x-axis values.
|
void |
setSeriesVisible(int i,
boolean flag) |
addGraphDataListener, fireDataChanged, removeGraphDataListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addGraphDataListener, removeGraphDataListener
public void setCategories(java.lang.Object[] cat)
public java.lang.Object[] getCategories()
public void addSeries(float[] newSeries)
public void addSeries(double[] 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 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