public interface

XYDataset

implements SeriesDataset
org.jfree.data.xy.XYDataset
Known Indirect Subclasses

Class Overview

An interface through which data in the form of (x, y) items can be accessed.

Summary

Public Methods
abstract DomainOrder getDomainOrder()
Returns the order of the domain (or X) values returned by the dataset.
abstract int getItemCount(int series)
Returns the number of items in a series.
abstract Number getX(int series, int item)
Returns the x-value for an item within a series.
abstract double getXValue(int series, int item)
Returns the x-value for an item within a series.
abstract Number getY(int series, int item)
Returns the y-value for an item within a series.
abstract double getYValue(int series, int item)
Returns the y-value (as a double primitive) for an item within a series.
[Expand]
Inherited Methods
From interface org.jfree.data.general.Dataset
From interface org.jfree.data.general.SeriesDataset

Public Methods

public abstract DomainOrder getDomainOrder ()

Returns the order of the domain (or X) values returned by the dataset.

Returns
  • The order (never null).

public abstract int getItemCount (int series)

Returns the number of items in a series.

It is recommended that classes that implement this method should throw an IllegalArgumentException if the series argument is outside the specified range.

Parameters
series the series index (in the range 0 to getSeriesCount() - 1).
Returns
  • The item count.

public abstract Number getX (int series, int item)

Returns the x-value for an item within a series. The x-values may or may not be returned in ascending order, that is up to the class implementing the interface.

Parameters
series the series index (in the range 0 to getSeriesCount() - 1).
item the item index (in the range 0 to getItemCount(series)).
Returns
  • The x-value (never null).

public abstract double getXValue (int series, int item)

Returns the x-value for an item within a series.

Parameters
series the series index (in the range 0 to getSeriesCount() - 1).
item the item index (in the range 0 to getItemCount(series)).
Returns
  • The x-value.

public abstract Number getY (int series, int item)

Returns the y-value for an item within a series.

Parameters
series the series index (in the range 0 to getSeriesCount() - 1).
item the item index (in the range 0 to getItemCount(series)).
Returns
  • The y-value (possibly null).

public abstract double getYValue (int series, int item)

Returns the y-value (as a double primitive) for an item within a series.

Parameters
series the series index (in the range 0 to getSeriesCount() - 1).
item the item index (in the range 0 to getItemCount(series)).
Returns
  • The y-value.