Package org.jfree.data.xy
Class MatrixSeriesCollection
java.lang.Object
org.jfree.data.general.AbstractDataset
org.jfree.data.general.AbstractSeriesDataset
org.jfree.data.xy.AbstractXYDataset
org.jfree.data.xy.AbstractXYZDataset
org.jfree.data.xy.MatrixSeriesCollection
- All Implemented Interfaces:
ObjectInputValidation,Serializable,Cloneable,EventListener,PublicCloneable,Dataset,SeriesChangeListener,SeriesDataset,XYDataset,XYZDataset
public class MatrixSeriesCollection
extends AbstractXYZDataset
implements XYZDataset, PublicCloneable, Serializable
Represents a collection of
MatrixSeries that can be used as a
dataset.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an empty dataset.MatrixSeriesCollection(MatrixSeries series) Constructs a dataset and populates it with a single matrix series. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSeries(MatrixSeries series) Adds a series to the collection.clone()Returns a clone of this instance.booleanTests this collection for equality with an arbitrary object.intgetItemCount(int seriesIndex) Returns the number of items in the specified series.getSeries(int seriesIndex) Returns the series having the specified index.intReturns the number of series in the collection.getSeriesKey(int seriesIndex) Returns the key for a series.getX(int seriesIndex, int itemIndex) Returns the j index value of the specified Mij matrix item in the specified matrix series.getY(int seriesIndex, int itemIndex) Returns the i index value of the specified Mij matrix item in the specified matrix series.getZ(int seriesIndex, int itemIndex) Returns the Mij item value of the specified Mij matrix item in the specified matrix series.inthashCode()Returns a hash code.voidRemoves all the series from the collection.voidremoveSeries(int seriesIndex) Removes a series from the collection.voidremoveSeries(MatrixSeries series) Removes a series from the collection.Methods inherited from class org.jfree.data.xy.AbstractXYZDataset
getZValueMethods inherited from class org.jfree.data.xy.AbstractXYDataset
getDomainOrder, getXValue, getYValueMethods inherited from class org.jfree.data.general.AbstractSeriesDataset
indexOf, seriesChangedMethods inherited from class org.jfree.data.general.AbstractDataset
addChangeListener, canEqual, fireDatasetChanged, getGroup, getNotify, hasListener, notifyListeners, removeChangeListener, setGroup, setNotify, validateObjectMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jfree.data.general.Dataset
addChangeListener, getGroup, removeChangeListener, setGroupMethods inherited from interface org.jfree.data.general.SeriesDataset
indexOfMethods inherited from interface org.jfree.data.xy.XYDataset
getDomainOrder, getXValue, getYValueMethods inherited from interface org.jfree.data.xy.XYZDataset
getZValue
-
Constructor Details
-
MatrixSeriesCollection
public MatrixSeriesCollection()Constructs an empty dataset. -
MatrixSeriesCollection
Constructs a dataset and populates it with a single matrix series.- Parameters:
series- the time series.
-
-
Method Details
-
getItemCount
Returns the number of items in the specified series.- Specified by:
getItemCountin interfaceXYDataset- Parameters:
seriesIndex- zero-based series index.- Returns:
- The number of items in the specified series.
-
getSeries
Returns the series having the specified index.- Parameters:
seriesIndex- zero-based series index.- Returns:
- The series.
-
getSeriesCount
Returns the number of series in the collection.- Specified by:
getSeriesCountin interfaceSeriesDataset- Specified by:
getSeriesCountin classAbstractSeriesDataset- Returns:
- The number of series in the collection.
-
getSeriesKey
Returns the key for a series.- Specified by:
getSeriesKeyin interfaceSeriesDataset- Specified by:
getSeriesKeyin classAbstractSeriesDataset- Parameters:
seriesIndex- zero-based series index.- Returns:
- The key for a series.
-
getX
Returns the j index value of the specified Mij matrix item in the specified matrix series. -
getY
Returns the i index value of the specified Mij matrix item in the specified matrix series. -
getZ
Returns the Mij item value of the specified Mij matrix item in the specified matrix series.- Specified by:
getZin interfaceXYZDataset- Parameters:
seriesIndex- the series (zero-based index).itemIndex- zero-based item index.- Returns:
- The Mij item value for the specified matrix item.
- See Also:
-
addSeries
Adds a series to the collection.Notifies all registered listeners that the dataset has changed.
- Parameters:
series- the series (nullnot permitted).
-
equals
Tests this collection for equality with an arbitrary object.- Overrides:
equalsin classAbstractDataset- Parameters:
obj- the object.- Returns:
- A boolean.
-
hashCode
Returns a hash code.- Overrides:
hashCodein classAbstractDataset- Returns:
- A hash code.
-
clone
Returns a clone of this instance.- Specified by:
clonein interfacePublicCloneable- Overrides:
clonein classAbstractDataset- Returns:
- A clone.
- Throws:
CloneNotSupportedException- if there is a problem.
-
removeAllSeries
Removes all the series from the collection.Notifies all registered listeners that the dataset has changed.
-
removeSeries
Removes a series from the collection.Notifies all registered listeners that the dataset has changed.
- Parameters:
series- the series (null).
-
removeSeries
Removes a series from the collection.Notifies all registered listeners that the dataset has changed.
- Parameters:
seriesIndex- the series (zero based index).
-