Package org.jfree.data
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 Summary
Modifier and Type Method Description abstract int
getSeriesCount()
Returns the number of series in the dataset.abstract String
getSeriesName(int series)
Returns the name of a series.void
seriesChanged(SeriesChangeEvent event)
Called when a series belonging to the dataset changes.Methods inherited from class org.jfree.data.AbstractDataset
addChangeListener, clone, getGroup, removeChangeListener, setGroup, validateObject
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jfree.data.Dataset
addChangeListener, getGroup, removeChangeListener, setGroup
-
Method Details
-
getSeriesCount
public abstract int getSeriesCount()Returns the number of series in the dataset.- Specified by:
getSeriesCount
in interfaceSeriesDataset
- Returns:
- The series count.
-
getSeriesName
Returns the name of a series.- Specified by:
getSeriesName
in interfaceSeriesDataset
- Parameters:
series
- the series (zero-based index).- Returns:
- The series name.
-
seriesChanged
Called when a series belonging to the dataset changes.- Specified by:
seriesChanged
in interfaceSeriesChangeListener
- Parameters:
event
- information about the change.
-