| org.jfree.data.xy.XYDataset
All known Subclasses: org.jfree.data.xy.DefaultXYDataset, org.jfree.data.time.TimeSeriesCollection, org.jfree.data.xy.AbstractXYDataset, org.jfree.data.jdbc.JDBCXYDataset, org.jfree.data.general.CombinedDataset,
XYDataset | public interface XYDataset extends SeriesDataset(Code) | | An interface through which data in the form of (x, y) items can be accessed.
|
Method Summary | |
public DomainOrder | getDomainOrder() Returns the order of the domain (or X) values returned by the dataset. | public 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. | public Number | getX(int series, int item) Returns the x-value for an item within a series. | public 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 ). Parameters: item - the item index (in the range 0 to getItemCount(series) ). | public 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 ). Parameters: item - the item index (in the range 0 to getItemCount(series) ). | public 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 ). Parameters: item - the item index (in the range 0 to getItemCount(series) ). |
getDomainOrder | public DomainOrder getDomainOrder()(Code) | | Returns the order of the domain (or X) values returned by the dataset.
The order (never null ). |
getItemCount | public int getItemCount(int series)(Code) | | 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 ). The item count. |
getX | public Number getX(int series, int item)(Code) | | 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 ). Parameters: item - the item index (in the range 0 to getItemCount(series) ). The x-value (never null ). |
getXValue | public double getXValue(int series, int item)(Code) | | Returns the x-value for an item within a series.
Parameters: series - the series index (in the range 0 to getSeriesCount() - 1 ). Parameters: item - the item index (in the range 0 to getItemCount(series) ). The x-value. |
getY | public Number getY(int series, int item)(Code) | | Returns the y-value for an item within a series.
Parameters: series - the series index (in the range 0 to getSeriesCount() - 1 ). Parameters: item - the item index (in the range 0 to getItemCount(series) ). The y-value (possibly null ). |
getYValue | public double getYValue(int series, int item)(Code) | | 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 ). Parameters: item - the item index (in the range 0 to getItemCount(series) ). The y-value. |
|
|