Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.jfree.data.general.AbstractDataset
org.jfree.data.general.AbstractSeriesDataset
org.jfree.data.xy.AbstractXYDataset
org.jfree.data.xy.VectorSeriesCollection
public class VectorSeriesCollection
extends AbstractXYDataset
implements VectorXYDataset, Serializable
VectorSeries
objects.
Constructor Summary | |
|
Method Summary | |
void |
|
Object |
|
boolean |
|
int |
|
VectorSeries |
|
int |
|
Comparable |
|
Vector |
|
double |
|
double |
|
Number |
|
double |
|
Number |
|
double |
|
int |
|
void |
|
boolean |
|
Methods inherited from class org.jfree.data.xy.AbstractXYDataset | |
getDomainOrder , getXValue , getYValue |
Methods inherited from class org.jfree.data.general.AbstractSeriesDataset | |
getSeriesCount , getSeriesKey , indexOf , seriesChanged |
Methods inherited from class org.jfree.data.general.AbstractDataset | |
addChangeListener , clone , fireDatasetChanged , getGroup , hasListener , notifyListeners , removeChangeListener , setGroup , validateObject |
public VectorSeriesCollection()
Creates a new instance ofVectorSeriesCollection
.
public void addSeries(VectorSeries series)
Adds a series to the collection and sends aDatasetChangeEvent
to all registered listeners.
- Parameters:
series
- the series (null
not permitted).
public Object clone() throws CloneNotSupportedException
Returns a clone of this instance.
- Overrides:
- clone in interface AbstractDataset
- Returns:
- A clone.
public boolean equals(Object obj)
Tests this instance for equality with an arbitrary object.
- Parameters:
obj
- the object (null
permitted).
- Returns:
- A boolean.
public int getItemCount(int series)
Returns the number of items in the specified series.
- Specified by:
- getItemCount in interface XYDataset
- Parameters:
series
- the series (zero-based index).
- Returns:
- The item count.
public VectorSeries getSeries(int series)
Returns a series from the collection.
- Parameters:
series
- the series index (zero-based).
- Returns:
- The series.
public int getSeriesCount()
Returns the number of series in the collection.
- Specified by:
- getSeriesCount in interface SeriesDataset
- Overrides:
- getSeriesCount in interface AbstractSeriesDataset
- Returns:
- The series count.
public Comparable getSeriesKey(int series)
Returns the key for a series.
- Specified by:
- getSeriesKey in interface SeriesDataset
- Overrides:
- getSeriesKey in interface AbstractSeriesDataset
- Parameters:
series
- the series index (in the range0
togetSeriesCount() - 1
).
- Returns:
- The key for a series.
public Vector getVector(int series, int item)
Returns the vector for an item in a series.
- Specified by:
- getVector in interface VectorXYDataset
- Parameters:
series
- the series index.item
- the item index.
- Returns:
- The vector (possibly
null
).
public double getVectorXValue(int series, int item)
Returns the x-component of the vector for an item in a series.
- Specified by:
- getVectorXValue in interface VectorXYDataset
- Parameters:
series
- the series index.item
- the item index.
- Returns:
- The x-component of the vector.
public double getVectorYValue(int series, int item)
Returns the y-component of the vector for an item in a series.
- Specified by:
- getVectorYValue in interface VectorXYDataset
- Parameters:
series
- the series index.item
- the item index.
- Returns:
- The y-component of the vector.
public Number getX(int series, int item)
Returns the x-value for an item within a series. Note that this method creates a newDouble
instance every time it is called---usegetXValue(int,int)
instead, if possible.
- Parameters:
series
- the series index.item
- the item index.
- Returns:
- The x-value.
public double getXValue(int series, int item)
Returns the x-value for an item within a series.
- Overrides:
- getXValue in interface AbstractXYDataset
- Parameters:
series
- the series index.item
- the item index.
- Returns:
- The x-value.
public Number getY(int series, int item)
Returns the y-value for an item within a series. Note that this method creates a newDouble
instance every time it is called---usegetYValue(int,int)
instead, if possible.
- Parameters:
series
- the series index.item
- the item index.
- Returns:
- The y-value.
public double getYValue(int series, int item)
Returns the y-value for an item within a series.
- Overrides:
- getYValue in interface AbstractXYDataset
- Parameters:
series
- the series index.item
- the item index.
- Returns:
- The y-value.
public int indexOf(VectorSeries series)
Returns the index of the specified series, or -1 if that series is not present in the dataset.
- Parameters:
series
- the series (null
not permitted).
- Returns:
- The series index.
public void removeAllSeries()
Removes all the series from the collection and sends aDatasetChangeEvent
to all registered listeners.
public boolean removeSeries(VectorSeries series)
Removes the specified series from the collection and sends aDatasetChangeEvent
to all registered listeners.
- Parameters:
series
- the series (null
not permitted).
- Returns:
- A boolean indicating whether the series has actually been removed.