|
Header
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jfree.data.general.AbstractDataset
org.jfree.data.general.AbstractSeriesDataset
org.jfree.data.xy.AbstractXYDataset
org.jfree.data.xy.VectorSeriesCollection
public class VectorSeriesCollection
A collection of VectorSeries objects.
| Constructor Summary | |
|---|---|
VectorSeriesCollection()
Creates a new instance of VectorSeriesCollection. |
|
| Method Summary | |
|---|---|
void |
addSeries(VectorSeries series)
Adds a series to the collection and sends a DatasetChangeEvent
to all registered listeners. |
java.lang.Object |
clone()
Returns a clone of this instance. |
boolean |
equals(java.lang.Object obj)
Tests this instance for equality with an arbitrary object. |
int |
getItemCount(int series)
Returns the number of items in the specified series. |
VectorSeries |
getSeries(int series)
Returns a series from the collection. |
int |
getSeriesCount()
Returns the number of series in the collection. |
java.lang.Comparable |
getSeriesKey(int series)
Returns the key for a series. |
Vector |
getVector(int series,
int item)
Returns the vector for an item in a series. |
double |
getVectorXValue(int series,
int item)
Returns the x-component of the vector for an item in a series. |
double |
getVectorYValue(int series,
int item)
Returns the y-component of the vector for an item in a series. |
java.lang.Number |
getX(int series,
int item)
Returns the x-value for an item within a series. |
double |
getXValue(int series,
int item)
Returns the x-value for an item within a series. |
java.lang.Number |
getY(int series,
int item)
Returns the y-value for an item within a series. |
double |
getYValue(int series,
int item)
Returns the y-value for an item within a series. |
int |
indexOf(VectorSeries series)
Returns the index of the specified series, or -1 if that series is not present in the dataset. |
void |
removeAllSeries()
Removes all the series from the collection and sends a DatasetChangeEvent to all registered listeners. |
boolean |
removeSeries(VectorSeries series)
Removes the specified series from the collection and sends a DatasetChangeEvent to all registered listeners. |
| Methods inherited from class org.jfree.data.xy.AbstractXYDataset |
|---|
getDomainOrder |
| Methods inherited from class org.jfree.data.general.AbstractSeriesDataset |
|---|
indexOf, seriesChanged |
| Methods inherited from class org.jfree.data.general.AbstractDataset |
|---|
addChangeListener, fireDatasetChanged, getGroup, hasListener, notifyListeners, removeChangeListener, setGroup, validateObject |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jfree.data.xy.XYDataset |
|---|
getDomainOrder |
| Methods inherited from interface org.jfree.data.general.SeriesDataset |
|---|
indexOf |
| Methods inherited from interface org.jfree.data.general.Dataset |
|---|
addChangeListener, getGroup, removeChangeListener, setGroup |
| Constructor Detail |
|---|
public VectorSeriesCollection()
VectorSeriesCollection.
| Method Detail |
|---|
public void addSeries(VectorSeries series)
DatasetChangeEvent
to all registered listeners.
series - the series (null not permitted).public boolean removeSeries(VectorSeries series)
DatasetChangeEvent to all registered listeners.
series - the series (null not permitted).
public void removeAllSeries()
DatasetChangeEvent to all registered listeners.
public int getSeriesCount()
getSeriesCount in interface SeriesDatasetgetSeriesCount in class AbstractSeriesDatasetpublic VectorSeries getSeries(int series)
series - the series index (zero-based).
java.lang.IllegalArgumentException - if series is not in the
range 0 to getSeriesCount() - 1.public java.lang.Comparable getSeriesKey(int series)
getSeriesKey in interface SeriesDatasetgetSeriesKey in class AbstractSeriesDatasetseries - the series index (in the range 0 to
getSeriesCount() - 1).
java.lang.IllegalArgumentException - if series is not in the
specified range.public int indexOf(VectorSeries series)
series - the series (null not permitted).
public int getItemCount(int series)
getItemCount in interface XYDatasetseries - the series (zero-based index).
java.lang.IllegalArgumentException - if series is not in the
range 0 to getSeriesCount() - 1.
public double getXValue(int series,
int item)
getXValue in interface XYDatasetgetXValue in class AbstractXYDatasetseries - the series index.item - the item index.
public java.lang.Number getX(int series,
int item)
Double instance every time it is called---use
getXValue(int, int) instead, if possible.
getX in interface XYDatasetseries - the series index.item - the item index.
public double getYValue(int series,
int item)
getYValue in interface XYDatasetgetYValue in class AbstractXYDatasetseries - the series index.item - the item index.
public java.lang.Number getY(int series,
int item)
Double instance every time it is called---use
getYValue(int, int) instead, if possible.
getY in interface XYDatasetseries - the series index.item - the item index.
public Vector getVector(int series,
int item)
getVector in interface VectorXYDatasetseries - the series index.item - the item index.
null).
public double getVectorXValue(int series,
int item)
getVectorXValue in interface VectorXYDatasetseries - the series index.item - the item index.
public double getVectorYValue(int series,
int item)
getVectorYValue in interface VectorXYDatasetseries - the series index.item - the item index.
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the object (null permitted).
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in interface org.jfree.util.PublicCloneableclone in class AbstractDatasetjava.lang.CloneNotSupportedException - if there is a problem.
|
Footer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||