| java.lang.Object com.vividsolutions.jump.workbench.ui.SelectionManager
SelectionManager | public class SelectionManager (Code) | | Provides aggregate information for selected features, parts, and linestrings.
Note that there is a difference between "selected features" and "features with
selected items": the former consists of wholly selected features; the latter,
wholly and partially selected features. To access a specific level of selection,
use #getFeatureSelection, #getPartSelection, or #getLineStringSelection.
"Parts" are components of GeometryCollections.
To get wholly selected features (i.e. not those that just have selected
parts or linestrings), use getFeatureSelection().getFeaturesWithSelectedItems()
To get features that are selected or have selected parts or linestrings,
use getFeaturesWithSelectedItems()
Yes there is a way to listen for selection events: LayerViewPanel#addListener.
|
arePanelUpdatesEnabled | public boolean arePanelUpdatesEnabled()(Code) | | |
clear | public void clear()(Code) | | |
createFeaturesFromSelectedItems | public Collection createFeaturesFromSelectedItems()(Code) | | A feature may get split into two or more -- for example, if two linestrings of a feature
are selected.
|
dispose | public void dispose()(Code) | | |
getFeaturesWithSelectedItems | public Collection getFeaturesWithSelectedItems()(Code) | | |
getSelectedItems | public Collection getSelectedItems()(Code) | | "items" rather than "geometries" because the user may have selected a part
of a Geometry (an element of a GeometryCollection or a ring of a Polygon).
a collection of Geometries |
getSelectedItems | public Collection getSelectedItems(Layer layer, Feature feature, Geometry geometry)(Code) | | Parameters: geometry - the feature's Geometry or equivalent; that is, a clone orsimilar enough Geometry from which Geometries can be retrieved usingthe selection indices |
setPanelUpdatesEnabled | public void setPanelUpdatesEnabled(boolean panelUpdatesEnabled)(Code) | | |
unselectFromFeaturesWithModifiedItemCounts | public void unselectFromFeaturesWithModifiedItemCounts(Layer layer, Collection features, Collection oldFeatureClones)(Code) | | |
unselectItems | public void unselectItems(Layer layer)(Code) | | |
updatePanel | public void updatePanel()(Code) | | |
|
|