public class MatrixSeriesCollection extends AbstractXYZDataset implements XYZDataset, org.jfree.util.PublicCloneable, Serializable
MatrixSeries
that can be used as a
dataset.MatrixSeries
,
Serialized FormConstructor and Description |
---|
MatrixSeriesCollection()
Constructs an empty dataset.
|
MatrixSeriesCollection(MatrixSeries series)
Constructs a dataset and populates it with a single matrix series.
|
Modifier and Type | Method and Description |
---|---|
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.
|
getZValue
getDomainOrder, getXValue, getYValue
indexOf, seriesChanged
addChangeListener, getGroup, getNotify, hasListener, removeChangeListener, setGroup, setNotify, validateObject
getClass, notify, notifyAll, toString, wait, wait, wait
getZValue
getDomainOrder, getXValue, getYValue
indexOf
addChangeListener, getGroup, removeChangeListener, setGroup
public MatrixSeriesCollection()
public MatrixSeriesCollection(MatrixSeries series)
series
- the time series.public int getItemCount(int seriesIndex)
getItemCount
in interface XYDataset
seriesIndex
- zero-based series index.public MatrixSeries getSeries(int seriesIndex)
seriesIndex
- zero-based series index.public int getSeriesCount()
getSeriesCount
in interface SeriesDataset
getSeriesCount
in class AbstractSeriesDataset
public Comparable getSeriesKey(int seriesIndex)
getSeriesKey
in interface SeriesDataset
getSeriesKey
in class AbstractSeriesDataset
seriesIndex
- zero-based series index.public Number getX(int seriesIndex, int itemIndex)
getX
in interface XYDataset
seriesIndex
- zero-based series index.itemIndex
- zero-based item index.XYDataset.getXValue(int, int)
public Number getY(int seriesIndex, int itemIndex)
getY
in interface XYDataset
seriesIndex
- zero-based series index.itemIndex
- zero-based item index.XYDataset.getYValue(int, int)
public Number getZ(int seriesIndex, int itemIndex)
getZ
in interface XYZDataset
seriesIndex
- the series (zero-based index).itemIndex
- zero-based item index.XYZDataset.getZValue(int, int)
public void addSeries(MatrixSeries series)
Notifies all registered listeners that the dataset has changed.
series
- the series (null
not permitted).public boolean equals(Object obj)
public int hashCode()
public Object clone() throws CloneNotSupportedException
clone
in interface org.jfree.util.PublicCloneable
clone
in class AbstractDataset
CloneNotSupportedException
- if there is a problem.public void removeAllSeries()
Notifies all registered listeners that the dataset has changed.
public void removeSeries(MatrixSeries series)
Notifies all registered listeners that the dataset has changed.
series
- the series (null
).public void removeSeries(int seriesIndex)
Notifies all registered listeners that the dataset has changed.
seriesIndex
- the series (zero based index).Jas4pp 1.5 © Java Analysis Studio for Particle Physics