|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.vividsolutions.jump.workbench.ui.SelectionManager
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.
| Constructor Summary | |
SelectionManager(LayerViewPanel panel,
LayerManagerProxy layerManagerProxy)
|
|
| Method Summary | |
boolean |
arePanelUpdatesEnabled()
|
void |
clear()
|
java.util.Collection |
createFeaturesFromSelectedItems()
A feature may get split into two or more -- for example, if two linestrings of a feature are selected. |
java.util.Collection |
createFeaturesFromSelectedItems(Layer layer)
|
void |
dispose()
|
FeatureSelection |
getFeatureSelection()
|
java.util.Collection |
getFeaturesWithSelectedItems()
|
java.util.Collection |
getFeaturesWithSelectedItems(Layer layer)
|
java.util.Collection |
getLayersWithSelectedItems()
|
LineStringSelection |
getLineStringSelection()
|
PartSelection |
getPartSelection()
|
java.util.Collection |
getSelectedItems()
"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). |
java.util.Collection |
getSelectedItems(Layer layer)
|
java.util.Collection |
getSelectedItems(Layer layer,
Feature feature)
|
java.util.Collection |
getSelectedItems(Layer layer,
Feature feature,
com.vividsolutions.jts.geom.Geometry geometry)
|
java.util.Collection |
getSelections()
|
void |
setPanelUpdatesEnabled(boolean panelUpdatesEnabled)
|
void |
unselectFromFeaturesWithModifiedItemCounts(Layer layer,
java.util.Collection features,
java.util.Collection oldFeatureClones)
|
void |
unselectItems(Layer layer)
|
void |
unselectItems(Layer layer,
java.util.Collection features)
|
void |
updatePanel()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SelectionManager(LayerViewPanel panel,
LayerManagerProxy layerManagerProxy)
| Method Detail |
public java.util.Collection createFeaturesFromSelectedItems()
public java.util.Collection createFeaturesFromSelectedItems(Layer layer)
public void clear()
public FeatureSelection getFeatureSelection()
public LineStringSelection getLineStringSelection()
public java.util.Collection getSelections()
public java.util.Collection getSelectedItems()
public java.util.Collection getSelectedItems(Layer layer)
public java.util.Collection getSelectedItems(Layer layer,
Feature feature)
public java.util.Collection getSelectedItems(Layer layer,
Feature feature,
com.vividsolutions.jts.geom.Geometry geometry)
geometry - the feature's Geometry or equivalent; that is, a clone or
similar enough Geometry from which Geometries can be retrieved using
the selection indicespublic java.util.Collection getLayersWithSelectedItems()
public PartSelection getPartSelection()
public void updatePanel()
public void setPanelUpdatesEnabled(boolean panelUpdatesEnabled)
public java.util.Collection getFeaturesWithSelectedItems(Layer layer)
public void unselectItems(Layer layer)
public void unselectItems(Layer layer,
java.util.Collection features)
public void unselectFromFeaturesWithModifiedItemCounts(Layer layer,
java.util.Collection features,
java.util.Collection oldFeatureClones)
public java.util.Collection getFeaturesWithSelectedItems()
public boolean arePanelUpdatesEnabled()
public void dispose()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||