Package org.jfree.data.general
Interface SeriesDataset
- All Superinterfaces:
Dataset
- All Known Subinterfaces:
BoxAndWhiskerXYDataset,IntervalXYDataset,IntervalXYZDataset,OHLCDataset,TableXYDataset,VectorXYDataset,WindDataset,XYDataset,XYZDataset
- All Known Implementing Classes:
AbstractIntervalXYDataset,AbstractSeriesDataset,AbstractXYDataset,AbstractXYZDataset,CategoryTableXYDataset,CyclicXYItemRenderer.OverwriteDataSet,DefaultBoxAndWhiskerXYDataset,DefaultHighLowDataset,DefaultIntervalCategoryDataset,DefaultIntervalXYDataset,DefaultOHLCDataset,DefaultTableXYDataset,DefaultWindDataset,DefaultXYDataset,DefaultXYZDataset,DynamicTimeSeriesCollection,HistogramDataset,JDBCXYDataset,MatrixSeriesCollection,OHLCSeriesCollection,SimpleHistogramDataset,TaskSeriesCollection,TimePeriodValuesCollection,TimeSeriesCollection,TimeTableXYDataset,VectorSeriesCollection,XIntervalSeriesCollection,XYBarDataset,XYIntervalSeriesCollection,XYSeriesCollection,XYTaskDataset,YIntervalSeriesCollection
The interface for a dataset consisting of one or many series of data.
-
Method Summary
Modifier and TypeMethodDescriptionintReturns the number of series in the dataset.getSeriesKey(int series) Returns the key for a series.intindexOf(Comparable seriesKey) Returns the index of the series with the specified key, or -1 if there is no such series in the dataset.Methods inherited from interface org.jfree.data.general.Dataset
addChangeListener, getGroup, removeChangeListener, setGroup
-
Method Details
-
getSeriesCount
int getSeriesCount()Returns the number of series in the dataset.- Returns:
- The series count.
-
getSeriesKey
Returns the key for a series.- Parameters:
series- the series index (in the range0togetSeriesCount() - 1).- Returns:
- The key for the series.
-
indexOf
Returns the index of the series with the specified key, or -1 if there is no such series in the dataset.- Parameters:
seriesKey- the series key (nullpermitted).- Returns:
- The index, or -1.
-