public class XYZSeries extends java.lang.Object implements java.io.Serializable
(x, y, z) data items.
The series has a key to identify it, and can be added to an
XYZSeriesCollection to create a dataset.
| Constructor and Description |
|---|
XYZSeries(java.lang.Comparable<?> key)
Creates a new series with the specified key.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(double x,
double y,
double z)
Adds a new data item to the series.
|
void |
add(XYZDataItem item)
Adds a new data item to the series.
|
boolean |
equals(java.lang.Object obj)
Tests this series for equality with an arbitrary object.
|
int |
getItemCount()
Returns the number of items in the series.
|
java.lang.Comparable<?> |
getKey()
Returns the series key.
|
double |
getXValue(int itemIndex)
Returns the x-value for the specified item in the series.
|
double |
getYValue(int itemIndex)
Returns the y-value for the specified item in the series.
|
double |
getZValue(int itemIndex)
Returns the z-value for the specified item in the series.
|
int |
hashCode() |
public XYZSeries(java.lang.Comparable<?> key)
key - the key (null not permitted).public java.lang.Comparable<?> getKey()
null).public int getItemCount()
public double getXValue(int itemIndex)
itemIndex - the item index.public double getYValue(int itemIndex)
itemIndex - the item index.public double getZValue(int itemIndex)
itemIndex - the item index.public void add(double x, double y, double z)
x - the x-value.y - the y-value.z - the z-value.public void add(XYZDataItem item)
item - the data item (null not permitted).public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the object to test (null permitted).public int hashCode()
hashCode in class java.lang.Object