schmitzm.jfree.chart.selection
Class CategoryDatasetSelectionModel
java.lang.Object
schmitzm.jfree.chart.selection.AbstractDatasetSelectionModel<CategoryDataset,Comparable<?>,Comparable<?>>
schmitzm.jfree.chart.selection.CategoryDatasetSelectionModel
- All Implemented Interfaces:
- DatasetSelectionModel<CategoryDataset,Comparable<?>,Comparable<?>>
- Direct Known Subclasses:
- FeatureCategoryDatasetSelectionModel
public class CategoryDatasetSelectionModel
- extends AbstractDatasetSelectionModel<CategoryDataset,Comparable<?>,Comparable<?>>
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 row key (= dataset series: Comparable
) and
its column key (= category: Comparable
).
- 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 |
CategoryDatasetSelectionModel
public CategoryDatasetSelectionModel(CategoryDataset 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.