schmitzm.jfree.feature
Interface FeatureDatasetSelectionModel<D extends Dataset,E,F>

All Superinterfaces:
DatasetSelectionModel<D,E,F>
All Known Implementing Classes:
FeatureCategoryDatasetSelectionModel, FeatureSeriesDatasetSelectionModel

public interface FeatureDatasetSelectionModel<D extends Dataset,E,F>
extends DatasetSelectionModel<D,E,F>

This selection model maintains whether items of a Dataset corresponding to features are selected in a chart or not.

Author:
Martin Schmitz (University of Bonn/Germany)

Method Summary
 boolean changeItemSelection(String fID)
          Changes the selection of the data item of a feature.
 Set<String> getSelectedFeatures()
          Returns the IDs of the selected features.
 boolean isFeatureSelected(String fID)
          Checks if the data item of a feature is selected.
 void setItemSelected(String fID, boolean selected)
          Sets whether the data item of a feature is selected or not.
 
Methods inherited from interface schmitzm.jfree.chart.selection.DatasetSelectionModel
addSelectionListener, changeItemSelection, clearSelection, datasetChanged, getDataset, getValueIsAdjusting, isItemSelected, refreshSelection, removeSelectionListener, setItemSelected, setValueIsAdjusting
 

Method Detail

isFeatureSelected

boolean isFeatureSelected(String fID)
Checks if the data item of a feature is selected.

Parameters:
fID - feature ID

setItemSelected

void setItemSelected(String fID,
                     boolean selected)
Sets whether the data item of a feature is selected or not.

Parameters:
fID - feature ID
selected - flag to (de)select the item

changeItemSelection

boolean changeItemSelection(String fID)
Changes the selection of the data item of a feature.

Parameters:
fID - feature ID
Returns:
true if the item changed to selected

getSelectedFeatures

Set<String> getSelectedFeatures()
Returns the IDs of the selected features.