| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.ObjectXYZDataset interface that stores
data values in arrays of double primitives.
Constructor Summary | |
| |
Method Summary | |
void |
|
Object |
|
boolean |
|
DomainOrder |
|
int |
|
int |
|
Comparable |
|
Number |
|
double |
|
Number |
|
double |
|
Number |
|
double |
|
int |
|
int |
|
void |
|
Methods inherited from class org.jfree.data.xy.AbstractXYZDataset | |
getZValue | |
Methods inherited from class org.jfree.data.xy.AbstractXYDataset | |
getDomainOrder, getXValue, getYValue | |
Methods inherited from class org.jfree.data.general.AbstractSeriesDataset | |
getSeriesCount, getSeriesKey, indexOf, seriesChanged | |
Methods inherited from class org.jfree.data.general.AbstractDataset | |
addChangeListener, clone, fireDatasetChanged, getGroup, hasListener, notifyListeners, removeChangeListener, setGroup, validateObject | |
public DefaultXYZDataset()
Creates a newDefaultXYZDatasetinstance, initially containing no data.
public void addSeries(Comparable seriesKey, double[][] data)
Adds a series or if a series with the same key already exists replaces the data for that series, then sends aDatasetChangeEventto all registered listeners.
- Parameters:
seriesKey- the series key (nullnot permitted).data- the data (must be an array with length 3, containing three arrays of equal length, the first containing the x-values, the second containing the y-values and the third containing the z-values).
public Object clone() throws CloneNotSupportedException
Creates an independent copy of this dataset.
- Overrides:
- clone in interface AbstractDataset
- Returns:
- The cloned dataset.
public boolean equals(Object obj)
Tests thisDefaultXYDatasetinstance for equality with an arbitrary object. This method returnstrueif and only if:
objis notnull;objis an instance ofDefaultXYDataset;- both datasets have the same number of series, each containing exactly the same values.
- Parameters:
obj- the object (nullpermitted).
- Returns:
- A boolean.
public DomainOrder getDomainOrder()
Returns the order of the domain (x-) values in the dataset. In this implementation, we cannot guarantee that the x-values are ordered, so this method returnsDomainOrder.NONE.
- Specified by:
- getDomainOrder in interface XYDataset
- Overrides:
- getDomainOrder in interface AbstractXYDataset
- Returns:
DomainOrder.NONE.
public int getItemCount(int series)
Returns the number of items in the specified series.
- Specified by:
- getItemCount in interface XYDataset
- Parameters:
series- the series index (in the range0togetSeriesCount() - 1).
- Returns:
- The item count.
public int getSeriesCount()
Returns the number of series in the dataset.
- Specified by:
- getSeriesCount in interface SeriesDataset
- Overrides:
- getSeriesCount in interface AbstractSeriesDataset
- Returns:
- The series count.
public Comparable getSeriesKey(int series)
Returns the key for a series.
- Specified by:
- getSeriesKey in interface SeriesDataset
- Overrides:
- getSeriesKey in interface AbstractSeriesDataset
- Parameters:
series- the series index (in the range0togetSeriesCount() - 1).
- Returns:
- The key for the series.
public Number getX(int series, int item)
Returns the x-value for an item within a series.
- Parameters:
series- the series index (in the range0togetSeriesCount() - 1).item- the item index (in the range0togetItemCount(series)).
- Returns:
- The x-value.
- See Also:
getXValue(int,int)
public double getXValue(int series, int item)
Returns the x-value for an item within a series.
- Overrides:
- getXValue in interface AbstractXYDataset
- Parameters:
series- the series index (in the range0togetSeriesCount() - 1).item- the item index (in the range0togetItemCount(series)).
- Returns:
- The x-value.
- See Also:
getX(int,int)
public Number getY(int series, int item)
Returns the y-value for an item within a series.
- Parameters:
series- the series index (in the range0togetSeriesCount() - 1).item- the item index (in the range0togetItemCount(series)).
- Returns:
- The y-value.
- See Also:
getX(int,int)
public double getYValue(int series, int item)
Returns the y-value for an item within a series.
- Overrides:
- getYValue in interface AbstractXYDataset
- Parameters:
series- the series index (in the range0togetSeriesCount() - 1).item- the item index (in the range0togetItemCount(series)).
- Returns:
- The y-value.
- See Also:
getY(int,int)
public Number getZ(int series, int item)
Returns the z-value for an item within a series.
- Specified by:
- getZ in interface XYZDataset
- Parameters:
series- the series index (in the range0togetSeriesCount() - 1).item- the item index (in the range0togetItemCount(series)).
- Returns:
- The z-value.
- See Also:
getZ(int,int)
public double getZValue(int series, int item)
Returns the z-value for an item within a series.
- Specified by:
- getZValue in interface XYZDataset
- Overrides:
- getZValue in interface AbstractXYZDataset
- Parameters:
series- the series index (in the range0togetSeriesCount() - 1).item- the item index (in the range0togetItemCount(series)).
- Returns:
- The z-value.
- See Also:
getZ(int,int)
public int indexOf(Comparable seriesKey)
Returns the index of the series with the specified key, or -1 if there is no such series in the dataset.
- Specified by:
- indexOf in interface SeriesDataset
- Overrides:
- indexOf in interface AbstractSeriesDataset
- Parameters:
seriesKey- the series key (nullpermitted).
- Returns:
- The index, or -1.
public void removeSeries(Comparable seriesKey)
Removes a series from the dataset, then sends aDatasetChangeEventto all registered listeners.
- Parameters:
seriesKey- the series key (nullnot permitted).