public class VectorSeriesCollection extends AbstractXYDataset implements VectorXYDataset, org.jfree.util.PublicCloneable, java.io.Serializable
VectorSeries objects.| Constructor and Description |
|---|
VectorSeriesCollection()
Creates a new instance of
VectorSeriesCollection. |
| Modifier and Type | Method and Description |
|---|---|
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. |
getDomainOrderindexOf, seriesChangedaddChangeListener, fireDatasetChanged, getGroup, getNotify, hasListener, notifyListeners, removeChangeListener, setGroup, setNotify, validateObjectfinalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDomainOrderindexOfaddChangeListener, getGroup, removeChangeListener, setGrouppublic VectorSeriesCollection()
VectorSeriesCollection.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.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.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.