org.jfree.data.xy
Class MatrixSeriesCollection
- Cloneable, Dataset, EventListener, ObjectInputValidation, Serializable, Dataset, SeriesChangeListener, SeriesDataset, XYDataset, XYZDataset
Represents a collection of
MatrixSeries
that can be used as a
dataset.
void | addSeries(MatrixSeries series) - Adds a series to the collection.
|
Object | clone() - Returns a clone of this instance.
|
boolean | equals(Object obj) - Tests this collection for equality with an arbitrary object.
|
int | getItemCount(int seriesIndex) - Returns the number of items in the specified series.
|
MatrixSeries | getSeries(int seriesIndex) - Returns the series having the specified index.
|
int | getSeriesCount() - Returns the number of series in the collection.
|
Comparable | getSeriesKey(int seriesIndex) - Returns the key for a series.
|
Number | getX(int seriesIndex, int itemIndex) - Returns the j index value of the specified Mij matrix item in the
specified matrix series.
|
Number | getY(int seriesIndex, int itemIndex) - Returns the i index value of the specified Mij matrix item in the
specified matrix series.
|
Number | getZ(int seriesIndex, int itemIndex) - Returns the Mij item value of the specified Mij matrix item in the
specified matrix series.
|
int | hashCode() - Returns a hash code.
|
void | removeAllSeries() - Removes all the series from the collection.
|
void | removeSeries(int seriesIndex) - Removes a series from the collection.
|
void | removeSeries(MatrixSeries series) - Removes a series from the collection.
|
addSeries
public void addSeries(MatrixSeries series)
Adds a series to the collection.
Notifies all registered listeners that the dataset has changed.
clone
public Object clone()
throws CloneNotSupportedException
Returns a clone of this instance.
- clone in interface AbstractDataset
equals
public boolean equals(Object obj)
Tests this collection for equality with an arbitrary object.
getItemCount
public int getItemCount(int seriesIndex)
Returns the number of items in the specified series.
- getItemCount in interface XYDataset
seriesIndex
- zero-based series index.
- The number of items in the specified series.
getSeries
public MatrixSeries getSeries(int seriesIndex)
Returns the series having the specified index.
seriesIndex
- zero-based series index.
getX
public Number getX(int seriesIndex,
int itemIndex)
Returns the j index value of the specified Mij matrix item in the
specified matrix series.
- getX in interface XYDataset
seriesIndex
- zero-based series index.itemIndex
- zero-based item index.
- The j index value for the specified matrix item.
getY
public Number getY(int seriesIndex,
int itemIndex)
Returns the i index value of the specified Mij matrix item in the
specified matrix series.
- getY in interface XYDataset
seriesIndex
- zero-based series index.itemIndex
- zero-based item index.
- The i index value for the specified matrix item.
getZ
public Number getZ(int seriesIndex,
int itemIndex)
Returns the Mij item value of the specified Mij matrix item in the
specified matrix series.
- getZ in interface XYZDataset
seriesIndex
- the series (zero-based index).itemIndex
- zero-based item index.
- The Mij item value for the specified matrix item.
hashCode
public int hashCode()
Returns a hash code.
removeAllSeries
public void removeAllSeries()
Removes all the series from the collection.
Notifies all registered listeners that the dataset has changed.
removeSeries
public void removeSeries(int seriesIndex)
Removes a series from the collection.
Notifies all registered listeners that the dataset has changed.
seriesIndex
- the series (zero based index).
removeSeries
public void removeSeries(MatrixSeries series)
Removes a series from the collection.
Notifies all registered listeners that the dataset has changed.