Class AbstractSeriesDataset

    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        For serialization.
        See Also:
        Constant Field Values
    • Constructor Detail

      • AbstractSeriesDataset

        protected AbstractSeriesDataset()
        Creates a new dataset.
    • Method Detail

      • getSeriesCount

        public abstract int getSeriesCount()
        Returns the number of series in the dataset.
        Specified by:
        getSeriesCount in interface SeriesDataset
        Returns:
        The series count.
      • getSeriesKey

        public abstract java.lang.Comparable getSeriesKey​(int series)
        Returns the key for a series.

        If series is not within the specified range, the implementing method should throw an IndexOutOfBoundsException (preferred) or an IllegalArgumentException.

        Specified by:
        getSeriesKey in interface SeriesDataset
        Parameters:
        series - the series index (in the range 0 to getSeriesCount() - 1).
        Returns:
        The series key.
      • indexOf

        public int indexOf​(java.lang.Comparable seriesKey)
        Returns the index of the named series, or -1.
        Specified by:
        indexOf in interface SeriesDataset
        Parameters:
        seriesKey - the series key (null permitted).
        Returns:
        The index.