|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectschmitzm.jfree.chart.selection.AbstractDatasetSelectionModel<CategoryDataset,Comparable<?>,Comparable<?>>
schmitzm.jfree.chart.selection.CategoryDatasetSelectionModel
schmitzm.jfree.feature.FeatureCategoryDatasetSelectionModel
public class FeatureCategoryDatasetSelectionModel
This class extends the CategoryDatasetSelectionModel
with the
FeatureDatasetSelectionModel
, so that selection operations
can directly applied on feature IDs.
Field Summary | |
---|---|
protected Feature2CategoryDatasetMapping |
mapping
Holds the mapping between features and the corresponding column/row keys. |
Fields inherited from class schmitzm.jfree.chart.selection.AbstractDatasetSelectionModel |
---|
dataset, listeners, LOGGER, selectedSeriesIdx |
Constructor Summary | |
---|---|
FeatureCategoryDatasetSelectionModel(CategoryDataset 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/row). |
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.CategoryDatasetSelectionModel |
---|
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 Feature2CategoryDatasetMapping mapping
Constructor Detail |
---|
public FeatureCategoryDatasetSelectionModel(CategoryDataset dataset)
dataset
- a dataset providing FeatureDatasetMetaData
as dataset group containing a Feature2CategoryDatasetMapping
Method Detail |
---|
public boolean isFeatureSelected(String fID)
isFeatureSelected
in interface FeatureDatasetSelectionModel<CategoryDataset,Comparable<?>,Comparable<?>>
fID
- feature IDpublic boolean isFeatureSelected(String fID, Comparable<?> seriesKey)
fID
- feature IDseriesKey
- series (row) to check for the feature IDpublic void setItemSelected(String fID, boolean selected)
setItemSelected
in interface FeatureDatasetSelectionModel<CategoryDataset,Comparable<?>,Comparable<?>>
fID
- feature IDselected
- flag to (de)select the itempublic void setItemSelected(String fID, Comparable<?> seriesKey, boolean selected)
fID
- feature IDseriesKey
- series (row) to set the selection inselected
- flag to (de)select the itempublic boolean changeItemSelection(String fID)
changeItemSelection
in interface FeatureDatasetSelectionModel<CategoryDataset,Comparable<?>,Comparable<?>>
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<CategoryDataset,Comparable<?>,Comparable<?>>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |