schmitzm.jfree.chart.selection
Class SeriesDatasetSelectionModel
java.lang.Object
schmitzm.jfree.chart.selection.AbstractDatasetSelectionModel<SeriesDataset,Comparable<?>,Integer>
schmitzm.jfree.chart.selection.SeriesDatasetSelectionModel
- All Implemented Interfaces:
- DatasetSelectionModel<SeriesDataset,Comparable<?>,Integer>
- Direct Known Subclasses:
- FeatureSeriesDatasetSelectionModel
public class SeriesDatasetSelectionModel
- extends AbstractDatasetSelectionModel<SeriesDataset,Comparable<?>,Integer>
This selection model maintains whether items of a SeriesDataset
are selected
in a chart or not.
Any item in this model is identified by its dataset series (Comparable
) and
its index in the series (Integer
).
- Author:
- Martin Schmitz (University of Bonn/Germany)
Method Summary |
void |
datasetChanged(DatasetChangeEvent event)
Listens for dataset changes. |
Methods inherited from class schmitzm.jfree.chart.selection.AbstractDatasetSelectionModel |
addSelectionListener, changeItemSelection, clearSelection, createInstanceFor, createSelectionChangeEvent, getDataset, getValueIsAdjusting, isItemSelected, refreshSelection, removeSelectionListener, setItemSelected, setValueIsAdjusting |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SeriesDatasetSelectionModel
public SeriesDatasetSelectionModel(SeriesDataset dataset)
- Creates a new selection model.
- Parameters:
dataset
- Dataset
whose data can be selected
datasetChanged
public void datasetChanged(DatasetChangeEvent event)
- Listens for dataset changes. If a series is no longer present
in the dataset, the respective items are removed from selection
list.