public class VectorSeriesCollection extends AbstractXYDataset implements VectorXYDataset, org.jfree.util.PublicCloneable, 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. |
Object |
clone()
Returns a clone of this instance.
|
boolean |
equals(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.
|
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.
|
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.
|
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, getGroup, getNotify, hasListener, removeChangeListener, setGroup, setNotify, validateObject
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).IllegalArgumentException
- if series
is not in the
range 0
to getSeriesCount() - 1
.public Comparable getSeriesKey(int series)
getSeriesKey
in interface SeriesDataset
getSeriesKey
in class AbstractSeriesDataset
series
- the series index (in the range 0
to
getSeriesCount() - 1
).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).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 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 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(Object obj)
public Object clone() throws CloneNotSupportedException
clone
in interface org.jfree.util.PublicCloneable
clone
in class AbstractDataset
CloneNotSupportedException
- if there is a problem.Jas4pp 1.5 © Java Analysis Studio for Particle Physics