Class AbstractSeriesDataset

    • Method Detail

      • 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.