public class SelectionManager extends Object
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()
| Constructor and Description |
|---|
SelectionManager(LayerViewPanel panel,
LayerManagerProxy layerManagerProxy) |
public SelectionManager(LayerViewPanel panel, LayerManagerProxy layerManagerProxy)
public Collection createFeaturesFromSelectedItems()
public Collection createFeaturesFromSelectedItems(Layer layer)
public void clear()
public FeatureSelection getFeatureSelection()
public LineStringSelection getLineStringSelection()
public Collection getSelections()
public Collection getSelectedItems()
public Collection getSelectedItems(Layer layer)
public Collection getSelectedItems(Layer layer, Feature feature)
public 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 Collection getLayersWithSelectedItems()
public PartSelection getPartSelection()
public void updatePanel()
public void setPanelUpdatesEnabled(boolean panelUpdatesEnabled)
public Collection getFeaturesWithSelectedItems(Layer layer)
public void unselectItems(Layer layer)
public void unselectItems(Layer layer, Collection features)
public void unselectFromFeaturesWithModifiedItemCounts(Layer layer, Collection features, Collection oldFeatureClones)
public Collection getFeaturesWithSelectedItems()
public boolean arePanelUpdatesEnabled()
public void dispose()
Copyright © 2015. All rights reserved.