Package org.jfree.data.xy
Interface XYDataset
- All Superinterfaces:
Dataset,SeriesDataset
- All Known Subinterfaces:
BoxAndWhiskerXYDataset,IntervalXYDataset,IntervalXYZDataset,OHLCDataset,TableXYDataset,VectorXYDataset,WindDataset,XYZDataset
- All Known Implementing Classes:
AbstractIntervalXYDataset,AbstractXYDataset,AbstractXYZDataset,CategoryTableXYDataset,CyclicXYItemRenderer.OverwriteDataSet,DefaultBoxAndWhiskerXYDataset,DefaultHighLowDataset,DefaultIntervalXYDataset,DefaultOHLCDataset,DefaultTableXYDataset,DefaultWindDataset,DefaultXYDataset,DefaultXYZDataset,DynamicTimeSeriesCollection,HistogramDataset,JDBCXYDataset,MatrixSeriesCollection,OHLCSeriesCollection,SimpleHistogramDataset,TimePeriodValuesCollection,TimeSeriesCollection,TimeTableXYDataset,VectorSeriesCollection,XIntervalSeriesCollection,XYBarDataset,XYIntervalSeriesCollection,XYSeriesCollection,XYTaskDataset,YIntervalSeriesCollection
An interface through which data in the form of (x, y) items can be accessed.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the order of the domain (or X) values returned by the dataset.intgetItemCount(int series) Returns the number of items in a series.getX(int series, int item) Returns the x-value for an item within a series.doublegetXValue(int series, int item) Returns the x-value for an item within a series.getY(int series, int item) Returns the y-value for an item within a series.doublegetYValue(int series, int item) Returns the y-value (as a double primitive) for an item within a series.Methods inherited from interface org.jfree.data.general.Dataset
addChangeListener, getGroup, removeChangeListener, setGroupMethods inherited from interface org.jfree.data.general.SeriesDataset
getSeriesCount, getSeriesKey, indexOf
-
Method Details
-
getDomainOrder
Returns the order of the domain (or X) values returned by the dataset.- Returns:
- The order (never
null).
-
getItemCount
Returns the number of items in a series.
It is recommended that classes that implement this method should throw anIllegalArgumentExceptionif theseriesargument is outside the specified range.- Parameters:
series- the series index (in the range0togetSeriesCount() - 1).- Returns:
- The item count.
-
getX
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 range0togetSeriesCount() - 1).item- the item index (in the range0togetItemCount(series)).- Returns:
- The x-value (never
null).
-
getXValue
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.
-
getY
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 (possibly
null).
-
getYValue
Returns the y-value (as a double primitive) 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.
-