|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectschmitzm.jfree.chart.selection.AbstractDatasetSelectionModel<SeriesDataset,Comparable<?>,Integer>
schmitzm.jfree.chart.selection.SeriesDatasetSelectionModel
schmitzm.jfree.feature.FeatureSeriesDatasetSelectionModel
public class FeatureSeriesDatasetSelectionModel
This class extends the SeriesDatasetSelectionModel
with the
FeatureDatasetSelectionModel
, so that selection operations
can directly applied on feature IDs.
Field Summary | |
---|---|
protected Feature2SeriesDatasetMapping |
mapping
Holds the mapping between features and the corresponding item indices of each series. |
Fields inherited from class schmitzm.jfree.chart.selection.AbstractDatasetSelectionModel |
---|
dataset, listeners, LOGGER, selectedSeriesIdx |
Constructor Summary | |
---|---|
FeatureSeriesDatasetSelectionModel(SeriesDataset dataset)
Creates a new selection model. |
Method Summary | |
---|---|
boolean |
changeItemSelection(String fID)
Changes the selection of the data item of a feature in all series. |
boolean |
changeItemSelection(String fID,
Comparable<?> seriesKey)
Changes the selection of the data item of a feature. |
Set<String> |
getSelectedFeatures()
Returns the IDs of the selected features (in any series). |
boolean |
isFeatureSelected(String fID)
Checks if the data item of a feature is selected in any series. |
boolean |
isFeatureSelected(String fID,
Comparable<?> seriesKey)
Checks if the data item of a feature is selected. |
void |
setItemSelected(String fID,
boolean selected)
Sets the selection state for a feature in all dataset series. |
void |
setItemSelected(String fID,
Comparable<?> seriesKey,
boolean selected)
Sets whether the data item of a feature is selected or not. |
Methods inherited from class schmitzm.jfree.chart.selection.SeriesDatasetSelectionModel |
---|
datasetChanged |
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 |
Methods inherited from interface schmitzm.jfree.chart.selection.DatasetSelectionModel |
---|
addSelectionListener, changeItemSelection, clearSelection, datasetChanged, getDataset, getValueIsAdjusting, isItemSelected, refreshSelection, removeSelectionListener, setItemSelected, setValueIsAdjusting |
Field Detail |
---|
protected Feature2SeriesDatasetMapping mapping
Constructor Detail |
---|
public FeatureSeriesDatasetSelectionModel(SeriesDataset dataset)
dataset
- a dataset providing FeatureDatasetMetaData
as dataset group containing a Feature2SeriesDatasetMapping
Method Detail |
---|
public boolean isFeatureSelected(String fID)
isFeatureSelected
in interface FeatureDatasetSelectionModel<SeriesDataset,Comparable<?>,Integer>
fID
- feature IDpublic boolean isFeatureSelected(String fID, Comparable<?> seriesKey)
fID
- feature IDseriesKey
- series to check for the feature IDpublic void setItemSelected(String fID, boolean selected)
setItemSelected
in interface FeatureDatasetSelectionModel<SeriesDataset,Comparable<?>,Integer>
fID
- feature IDselected
- flag to (de)select the itempublic void setItemSelected(String fID, Comparable<?> seriesKey, boolean selected)
fID
- feature IDseriesKey
- series to set the selection inselected
- flag to (de)select the itempublic boolean changeItemSelection(String fID)
changeItemSelection
in interface FeatureDatasetSelectionModel<SeriesDataset,Comparable<?>,Integer>
fID
- feature ID
true
if at least one item changed to selectedpublic boolean changeItemSelection(String fID, Comparable<?> seriesKey)
fID
- feature IDseriesKey
- series to change the selection in
true
if the item changed to selectedpublic Set<String> getSelectedFeatures()
getSelectedFeatures
in interface FeatureDatasetSelectionModel<SeriesDataset,Comparable<?>,Integer>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |