java.lang.Object | ||||
↳ | org.jfree.data.general.AbstractDataset | |||
↳ | org.jfree.data.general.AbstractSeriesDataset | |||
↳ | org.jfree.data.xy.AbstractXYDataset | |||
↳ | org.jfree.data.xy.DefaultXYDataset |
A default implementation of the XYDataset
interface that stores
data values in arrays of double primitives.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new
DefaultXYDataset instance, initially
containing no data. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a series or if a series with the same key already exists replaces
the data for that series, then sends a
DatasetChangeEvent to
all registered listeners. | |||||||||||
Creates an independent copy of this dataset.
| |||||||||||
Tests this
DefaultXYDataset instance for equality with an
arbitrary object. | |||||||||||
Returns the order of the domain (x-) values in the dataset.
| |||||||||||
Returns the number of items in the specified series.
| |||||||||||
Returns the number of series in the dataset.
| |||||||||||
Returns the key for a series.
| |||||||||||
Returns the x-value for an item within a series.
| |||||||||||
Returns the x-value for an item within a series.
| |||||||||||
Returns the y-value for an item within a series.
| |||||||||||
Returns the y-value for an item within a series.
| |||||||||||
Returns a hash code for this instance.
| |||||||||||
Returns the index of the series with the specified key, or -1 if there
is no such series in the dataset.
| |||||||||||
Removes a series from the dataset, then sends a
DatasetChangeEvent to all registered listeners. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Creates a new DefaultXYDataset
instance, initially
containing no data.
Adds a series or if a series with the same key already exists replaces
the data for that series, then sends a DatasetChangeEvent
to
all registered listeners.
seriesKey | the series key (null not permitted). |
---|---|
data | the data (must be an array with length 2, containing two arrays of equal length, the first containing the x-values and the second containing the y-values). |
Creates an independent copy of this dataset.
CloneNotSupportedException | if there is a problem cloning the dataset (for instance, if a non-cloneable object is used for a series key). |
---|
Tests this DefaultXYDataset
instance for equality with an
arbitrary object. This method returns true
if and only if:
obj
is not null
;obj
is an instance of
DefaultXYDataset
;obj | the object (null permitted). |
---|
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 returns DomainOrder.NONE
.
DomainOrder.NONE
.
Returns the number of items in the specified series.
series | the series index (in the range 0 to
getSeriesCount() - 1 ). |
---|
IllegalArgumentException | if series is not in the
specified range.
|
---|
Returns the number of series in the dataset.
Returns the key for a series.
series | the series index (in the range 0 to
getSeriesCount() - 1 ). |
---|
IllegalArgumentException | if series is not in the
specified range.
|
---|
Returns the x-value for an item within a series.
series | the series index (in the range 0 to
getSeriesCount() - 1 ). |
---|---|
item | the item index (in the range 0 to
getItemCount(series) ). |
ArrayIndexOutOfBoundsException | if series is not
within the specified range. |
---|---|
ArrayIndexOutOfBoundsException | if item is not
within the specified range. |
Returns the x-value for an item within a series.
series | the series index (in the range 0 to
getSeriesCount() - 1 ). |
---|---|
item | the item index (in the range 0 to
getItemCount(series) ). |
ArrayIndexOutOfBoundsException | if series is not
within the specified range. |
---|---|
ArrayIndexOutOfBoundsException | if item is not
within the specified range. |
Returns the y-value for an item within a series.
series | the series index (in the range 0 to
getSeriesCount() - 1 ). |
---|---|
item | the item index (in the range 0 to
getItemCount(series) ). |
ArrayIndexOutOfBoundsException | if series is not
within the specified range. |
---|---|
ArrayIndexOutOfBoundsException | if item is not
within the specified range. |
Returns the y-value for an item within a series.
series | the series index (in the range 0 to
getSeriesCount() - 1 ). |
---|---|
item | the item index (in the range 0 to
getItemCount(series) ). |
ArrayIndexOutOfBoundsException | if series is not
within the specified range. |
---|---|
ArrayIndexOutOfBoundsException | if item is not
within the specified range. |
Returns a hash code for this instance.
Returns the index of the series with the specified key, or -1 if there is no such series in the dataset.
seriesKey | the series key (null permitted). |
---|
Removes a series from the dataset, then sends a
DatasetChangeEvent
to all registered listeners.
seriesKey | the series key (null not permitted).
|
---|