Class AbstractSeriesDataset

java.lang.Object
org.jfree.data.AbstractDataset
org.jfree.data.AbstractSeriesDataset
All Implemented Interfaces:
ObjectInputValidation, Serializable, Cloneable, EventListener, Dataset, SeriesChangeListener, SeriesDataset
Direct Known Subclasses:
AbstractXYDataset, DefaultIntervalCategoryDataset, SampleXYSymbolicDataset, SampleYSymbolicDataset, TaskSeriesCollection

public abstract class AbstractSeriesDataset
extends AbstractDataset
implements SeriesDataset, SeriesChangeListener, Serializable
An abstract implementation of the SeriesDataset interface, containing a mechanism for registering change listeners.
See Also:
Serialized Form
  • Method Details

    • getSeriesCount

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

      public abstract String getSeriesName​(int series)
      Returns the name of a series.
      Specified by:
      getSeriesName in interface SeriesDataset
      Parameters:
      series - the series (zero-based index).
      Returns:
      The series name.
    • seriesChanged

      public void seriesChanged​(SeriesChangeEvent event)
      Called when a series belonging to the dataset changes.
      Specified by:
      seriesChanged in interface SeriesChangeListener
      Parameters:
      event - information about the change.