Module org.jfree.chart3d
Package org.jfree.chart3d.data.xyz
Interface XYZDataset<S extends Comparable<S>>
- Type Parameters:
S- The series key type (which must implement Comparable).
- All Superinterfaces:
Dataset3D
- All Known Implementing Classes:
XYZSeriesCollection
Defines the methods used to access data in the form of multiple series
containing
(x, y, z) data items. This is the standard
dataset format used by the XYZPlot class.-
Method Summary
Modifier and TypeMethodDescriptionintgetItemCount(int series) Returns the number of items in a given series.intReturns the number of series in the dataset.intgetSeriesIndex(S key) Returns the index of the specified series key, or-1if the key is not found.getSeriesKey(int index) Returns the key for the specified series.Returns a list of the series-keys for the dataset.doublegetX(int series, int item) Returns the x-value for an item in a series.doublegetY(int series, int item) Returns the y-value for an item in a series.doublegetZ(int series, int item) Returns the z-value for an item in a series.Methods inherited from interface org.jfree.chart3d.data.Dataset3D
addChangeListener, hasListener, removeChangeListener
-
Method Details
-
getSeriesCount
int getSeriesCount()Returns the number of series in the dataset.- Returns:
- The number of series in the dataset.
-
getSeriesKeys
List<S> getSeriesKeys()Returns a list of the series-keys for the dataset. Modifying this list will have no impact on the underlying dataset.- Returns:
- A list of the series-keys (possibly empty, but never
null).
-
getSeriesKey
Returns the key for the specified series.- Parameters:
index- the series index.- Returns:
- The series key.
- Since:
- 1.3
-
getSeriesIndex
Returns the index of the specified series key, or-1if the key is not found.- Parameters:
key- the key (nullnot permitted).- Returns:
- The index of the key, or
-1.
-
getItemCount
Returns the number of items in a given series.- Parameters:
series- the series index.- Returns:
- The item count.
-
getX
Returns the x-value for an item in a series.- Parameters:
series- the series index.item- the item index.- Returns:
- The x-value.
-
getY
Returns the y-value for an item in a series.- Parameters:
series- the series index.item- the item index.- Returns:
- The y-value.
-
getZ
Returns the z-value for an item in a series.- Parameters:
series- the series index.item- the item index.- Returns:
- The z-value.
-