com.jrefinery.data
Interface XYDataset
- All Superinterfaces:
- Dataset, SeriesDataset
- All Known Subinterfaces:
- HighLowDataset, IntervalXYDataset, IntervalXYZDataset, SignalsDataset, WindDataset, XYZDataset
- All Known Implementing Classes:
- XYSeriesCollection, CombinedDataset, DefaultXYDataset, JdbcXYDataset, EmptyXYDataset, SampleYSymbolicDataset, SampleXYDataset2, SampleXYSymbolicDataset, SampleXYDataset
- public interface XYDataset
- extends SeriesDataset
An interface through which data in the form of (x, y) pairs can be accessed.
- Author:
- DG
Method Summary |
int |
getItemCount(int series)
Returns the number of items in a series. |
java.lang.Number |
getXValue(int series,
int item)
Returns the x-value for an item within a series. |
java.lang.Number |
getYValue(int series,
int item)
Returns the y-value for an item within a series. |
getItemCount
public int getItemCount(int series)
- Returns the number of items in a series.
- Parameters:
series
- the series (zero-based index).- Returns:
- the number of items within the series.
getXValue
public java.lang.Number getXValue(int series,
int item)
- Returns the x-value for an item within a series.
The implementation is responsible for ensuring that the x-values are
presented in ascending order.
- Parameters:
series
- the series (zero-based index).item
- the item (zero-based index).- Returns:
- the x-value.
getYValue
public java.lang.Number getYValue(int series,
int item)
- Returns the y-value for an item within a series.
- Parameters:
series
- the series (zero-based index).item
- the item (zero-based index).- Returns:
- the y-value.