public class XYZSeriesCollection extends AbstractDataset3D implements XYZDataset, java.io.Serializable
XYZSeries objects (implements the XYZDataset
interface so that it can be used as a source of data for an
XYZRenderer on an XYZPlot).
| Constructor and Description |
|---|
XYZSeriesCollection()
Creates a new (empty)
XYZSeriesCollection instance. |
| Modifier and Type | Method and Description |
|---|---|
void |
add(XYZSeries series)
Adds a series to the collection (note that the series key must be
unique within the collection).
|
boolean |
equals(java.lang.Object obj)
Tests this dataset for equality with an arbitrary object.
|
int |
getItemCount(int seriesIndex)
Returns the number of items in the specified series.
|
XYZSeries |
getSeries(java.lang.Comparable<?> key)
Returns the series with the specified key, or
null if
there is no such series. |
XYZSeries |
getSeries(int index)
Returns the series with the specified index.
|
int |
getSeriesCount()
Returns the number of series in the collection.
|
int |
getSeriesIndex(java.lang.Comparable<?> key)
Returns the index of the series with the specified key, or
-1 if there is no series with the specified key. |
java.lang.Comparable<?> |
getSeriesKey(int seriesIndex)
Returns the key for the specified series.
|
java.util.List<java.lang.Comparable<?>> |
getSeriesKeys()
Returns a new list containing all the series keys.
|
double |
getX(int seriesIndex,
int itemIndex)
Returns the x-value for one item in a series.
|
double |
getY(int seriesIndex,
int itemIndex)
Returns the y-value for one item in a series.
|
double |
getZ(int seriesIndex,
int itemIndex)
Returns the z-value for one item in a series.
|
int |
hashCode() |
java.lang.String |
toString()
Returns a string representation of this instance, primarily for
debugging purposes.
|
addChangeListener, fireChangeEvent, fireDatasetChanged, hasListener, isNotify, notifyListeners, removeChangeListener, setNotifyclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddChangeListener, hasListener, removeChangeListenerpublic XYZSeriesCollection()
XYZSeriesCollection instance.public int getSeriesCount()
getSeriesCount in interface XYZDatasetpublic int getSeriesIndex(java.lang.Comparable<?> key)
-1 if there is no series with the specified key.getSeriesIndex in interface XYZDatasetkey - the key (null not permitted).-1.public java.util.List<java.lang.Comparable<?>> getSeriesKeys()
XYZSeriesCollection instance.getSeriesKeys in interface XYZDatasetnull).public java.lang.Comparable<?> getSeriesKey(int seriesIndex)
getSeriesKey in interface XYZDatasetseriesIndex - the series index.public void add(XYZSeries series)
series - the series (null not permitted).public XYZSeries getSeries(int index)
index - the series index.public XYZSeries getSeries(java.lang.Comparable<?> key)
null if
there is no such series.key - the key (null not permitted).public int getItemCount(int seriesIndex)
getItemCount in interface XYZDatasetseriesIndex - the series index.public double getX(int seriesIndex, int itemIndex)
getX in interface XYZDatasetseriesIndex - the series index.itemIndex - the item index.public double getY(int seriesIndex, int itemIndex)
getY in interface XYZDatasetseriesIndex - the series index.itemIndex - the item index.public double getZ(int seriesIndex, int itemIndex)
getZ in interface XYZDatasetseriesIndex - the series index.itemIndex - the item index.public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the object (null not permitted).public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
JSONUtils.writeXYZDataset(com.orsoncharts.data.xyz.XYZDataset).toString in class java.lang.Object