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. |
getDomainOrder
indexOf, seriesChanged
addChangeListener, fireDatasetChanged, getGroup, getNotify, hasListener, notifyListeners, removeChangeListener, setGroup, setNotify, validateObject
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDomainOrder
indexOf
addChangeListener, getGroup, removeChangeListener, setGroup
public 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 SeriesDataset
getSeriesCount
in class AbstractSeriesDataset
public 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 SeriesDataset
getSeriesKey
in class AbstractSeriesDataset
series
- 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 XYDataset
series
- 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 XYDataset
getXValue
in class AbstractXYDataset
series
- 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 XYDataset
getYValue
in class AbstractXYDataset
series
- 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 VectorXYDataset
series
- the series index.item
- the item index.null
).public double getVectorXValue(int series, int item)
getVectorXValue
in interface VectorXYDataset
series
- the series index.item
- the item index.public double getVectorYValue(int series, int item)
getVectorYValue
in interface VectorXYDataset
series
- the series index.item
- the item index.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object (null
permitted).public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in interface org.jfree.util.PublicCloneable
clone
in class AbstractDataset
java.lang.CloneNotSupportedException
- if there is a problem.