public abstract class AbstractSeriesDataset extends AbstractDataset implements SeriesDataset, SeriesChangeListener, Serializable
SeriesDataset
interface,
containing a mechanism for registering change listeners.Modifier and Type | Method and Description |
---|---|
abstract int |
getSeriesCount()
Returns the number of series in the dataset.
|
abstract Comparable |
getSeriesKey(int series)
Returns the key for a series.
|
int |
indexOf(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, getGroup, getNotify, hasListener, removeChangeListener, setGroup, setNotify, validateObject
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addChangeListener, getGroup, removeChangeListener, setGroup
public abstract int getSeriesCount()
getSeriesCount
in interface SeriesDataset
public abstract 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(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.Jas4pp 1.5 © Java Analysis Studio for Particle Physics