public abstract class AbstractSeriesDataset extends AbstractDataset implements SeriesDataset, SeriesChangeListener, java.io.Serializable
SeriesDataset
interface,
containing a mechanism for registering change listeners.Modifier | Constructor and Description |
---|---|
protected |
AbstractSeriesDataset()
Creates a new dataset.
|
Modifier and Type | Method and Description |
---|---|
abstract int |
getSeriesCount()
Returns the number of series in the dataset.
|
abstract java.lang.Comparable |
getSeriesKey(int series)
Returns the key for a series.
|
int |
indexOf(java.lang.Comparable seriesKey)
Returns the index of the named series, or -1.
|
void |
seriesChanged(SeriesChangeEvent event)
Called when a series belonging to the dataset changes.
|
addChangeListener, clone, fireDatasetChanged, getGroup, getNotify, hasListener, notifyListeners, removeChangeListener, setGroup, setNotify, validateObject
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addChangeListener, getGroup, removeChangeListener, setGroup
protected AbstractSeriesDataset()
public abstract int getSeriesCount()
getSeriesCount
in interface SeriesDataset
public abstract java.lang.Comparable getSeriesKey(int series)
If series
is not within the specified range, the
implementing method should throw an IndexOutOfBoundsException
(preferred) or an IllegalArgumentException
.
getSeriesKey
in interface SeriesDataset
series
- the series index (in the range 0
to
getSeriesCount() - 1
).public int indexOf(java.lang.Comparable seriesKey)
indexOf
in interface SeriesDataset
seriesKey
- the series key (null
permitted).public void seriesChanged(SeriesChangeEvent event)
seriesChanged
in interface SeriesChangeListener
event
- information about the change.