|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectskrueger.geotools.selection.StyledLayerSelectionModelSynchronizer<StyledFeatureLayerSelectionModel>
skrueger.geotools.selection.FeatureMapLayerSelectionSynchronizer
public class FeatureMapLayerSelectionSynchronizer
This class keeps the selection of a (feature) JTable
synchronized
with the StyledLayerSelectionModel
of a layer. This is done by
implementing:
PropertyChangeListener
which listens to the
StyledLayerSelectionModel
and accordingly changes the JTable
selectionListSelectionListener
which listens to the JTable
and
accordingly changes the StyledLayerSelectionModel
selectionStyledLayerSelectionModel
and the table's
ListSelectionModel
.
Field Summary | |
---|---|
protected MapLayer |
mapLayer
Holds the MapLayer to keep synchronized with the layer selection
model. |
protected SelectableXMapPane |
mapPane
|
static String |
SELECTION_STYLING_FTS_NAME
This constant is set as the FeatureTypeStyle#getName() attribute
in the FeatureTypeStyle s that only exist to present the selected
features |
protected StyledFeaturesInterface<?> |
styledLayer
|
Fields inherited from class skrueger.geotools.selection.StyledLayerSelectionModelSynchronizer |
---|
layerSelModel, LOGGER, selectionChangeCausedByMe |
Constructor Summary | |
---|---|
FeatureMapLayerSelectionSynchronizer(StyledFeatureLayerSelectionModel layerSelModel,
StyledFeaturesInterface<?> styledLayer,
MapLayer mapLayer,
SelectableXMapPane mapPane,
MapPaneToolBar toolBar)
Creates a new synchronizer |
Method Summary | |
---|---|
void |
performMapPaneEvent(MapPaneEvent e)
Used to synchronize FeatureSelectedEvent s with the
StyledFeatureLayerSelectionModel |
void |
propertyChange(PropertyChangeEvent evt)
Called by StyledLayerSelectionModel when a the selection on other
selection components (map, chart, ...) has changed. |
Methods inherited from class skrueger.geotools.selection.StyledLayerSelectionModelSynchronizer |
---|
isEnabled, setEnabled |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String SELECTION_STYLING_FTS_NAME
FeatureTypeStyle#getName()
attribute
in the FeatureTypeStyle
s that only exist to present the selected
features
protected final MapLayer mapLayer
MapLayer
to keep synchronized with the layer selection
model.
protected final StyledFeaturesInterface<?> styledLayer
protected final SelectableXMapPane mapPane
Constructor Detail |
---|
public FeatureMapLayerSelectionSynchronizer(StyledFeatureLayerSelectionModel layerSelModel, StyledFeaturesInterface<?> styledLayer, MapLayer mapLayer, SelectableXMapPane mapPane, MapPaneToolBar toolBar)
layerSelModel
- layer selection model to keep synchronized with the
MapLayer
mapLayer
- MapLayer
to keep synchronized with.Method Detail |
---|
public void propertyChange(PropertyChangeEvent evt)
StyledLayerSelectionModel
when a the selection on other
selection components (map, chart, ...) has changed. When calling this
method changes the MapLayer
selection according to the
StyledLayerSelectionModel
selection.
propertyChange
in interface PropertyChangeListener
evt
- an eventpublic void performMapPaneEvent(MapPaneEvent e)
FeatureSelectedEvent
s with the
StyledFeatureLayerSelectionModel
performMapPaneEvent
in interface JMapPaneListener
e
- Ereignis
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |