Class AbstractSelection
java.lang.Object
com.vividsolutions.jump.workbench.ui.AbstractSelection
- Direct Known Subclasses:
FeatureSelection, LineStringSelection, PartSelection
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected AbstractSelectiongetChild()Returns a mapping of each feature to selected items in this feature.Returns a mapping of each feature to indices of selected items in this feature.protected AbstractSelectionabstract StringgetSelectedItemIndices(Layer layer, Feature feature) Returns indices of selected items in this feature.Collection<org.locationtech.jts.geom.Geometry> Collection<org.locationtech.jts.geom.Geometry> getSelectedItems(Layer layer) Collection<org.locationtech.jts.geom.Geometry> getSelectedItems(Layer layer, Feature feature) Collection<org.locationtech.jts.geom.Geometry> getSelectedItems(Layer layer, Feature feature, org.locationtech.jts.geom.Geometry geometry) indices(org.locationtech.jts.geom.Geometry geometry, Collection<org.locationtech.jts.geom.Geometry> items) Returns indices of items in geometry.abstract List<org.locationtech.jts.geom.Geometry> items(org.locationtech.jts.geom.Geometry geometry) Each selection implementation has the responsability to return the list of items composing a parent geometry.List<org.locationtech.jts.geom.Geometry> items(org.locationtech.jts.geom.Geometry geometry, Collection<Integer> indices) Returns items having these indices in geometry.Collection<org.locationtech.jts.geom.Geometry> itemsNotSelectedInAncestors(Layer layer, Feature feature, Collection<org.locationtech.jts.geom.Geometry> items) protected abstract booleanselectedInAncestors(Layer layer, Feature feature, org.locationtech.jts.geom.Geometry item) voidselectItems(Layer layer, Feature feature) voidselectItems(Layer layer, Feature feature, Collection<org.locationtech.jts.geom.Geometry> items) voidselectItems(Layer layer, Collection features) voidselectItems(Layer layer, Map<Feature, List<org.locationtech.jts.geom.Geometry>> featureToItemCollectionMap) voidsetChild(AbstractSelection child) voidsetParent(AbstractSelection parent) voidunselectFromFeaturesWithModifiedItemCounts(Layer layer, Collection<Feature> features, Collection<Feature> oldFeatureClones) protected abstract voidunselectInDescendants(Layer layer, Feature feature, Collection<org.locationtech.jts.geom.Geometry> items) voidunselectItem(Layer layer, Feature feature, int selectedItemIndex) voidvoidunselectItems(Layer layer) voidunselectItems(Layer layer, Feature feature) voidunselectItems(Layer layer, Feature feature, Collection<org.locationtech.jts.geom.Geometry> items) voidunselectItems(Layer layer, Collection features) voidunselectItems(Layer layer, Map<Feature, List<org.locationtech.jts.geom.Geometry>> featureToItemCollectionMap)
-
Constructor Details
-
AbstractSelection
-
-
Method Details
-
getRendererContentID
-
items
public abstract List<org.locationtech.jts.geom.Geometry> items(org.locationtech.jts.geom.Geometry geometry) Each selection implementation has the responsability to return the list of items composing a parent geometry. -
items
public List<org.locationtech.jts.geom.Geometry> items(org.locationtech.jts.geom.Geometry geometry, Collection<Integer> indices) Returns items having these indices in geometry.- Parameters:
geometry- geometry to analyseindices- indices of wanted geometries
-
getFeatureToSelectedItemIndexCollectionMap
-
getSelectedItemIndices
-
getFeatureToSelectedItemCollectionMap
-
getLayersWithSelectedItems
-
getFeaturesWithSelectedItems
-
getFeaturesWithSelectedItems
-
getSelectedItems
-
getSelectedItems
-
getSelectedItems
public Collection<org.locationtech.jts.geom.Geometry> getSelectedItems(Layer layer, Feature feature) -
getSelectedItems
public Collection<org.locationtech.jts.geom.Geometry> getSelectedItems(Layer layer, Feature feature, org.locationtech.jts.geom.Geometry geometry) - Parameters:
geometry- the feature's Geometry or equivalent; that is, a clone or similar enough Geometry from which Geometries can be retrieved using the selection indices.
-
indices
public Set<Integer> indices(org.locationtech.jts.geom.Geometry geometry, Collection<org.locationtech.jts.geom.Geometry> items) Returns indices of items in geometry. -
unselectItems
-
selectItems
-
selectItems
public void selectItems(Layer layer, Feature feature, Collection<org.locationtech.jts.geom.Geometry> items) -
unselectItems
public void unselectItems(Layer layer, Feature feature, Collection<org.locationtech.jts.geom.Geometry> items) -
itemsNotSelectedInAncestors
public Collection<org.locationtech.jts.geom.Geometry> itemsNotSelectedInAncestors(Layer layer, Feature feature, Collection<org.locationtech.jts.geom.Geometry> items) -
selectedInAncestors
-
unselectInDescendants
protected abstract void unselectInDescendants(Layer layer, Feature feature, Collection<org.locationtech.jts.geom.Geometry> items) -
selectItems
-
selectItems
-
unselectFromFeaturesWithModifiedItemCounts
public void unselectFromFeaturesWithModifiedItemCounts(Layer layer, Collection<Feature> features, Collection<Feature> oldFeatureClones) -
unselectItems
public void unselectItems() -
unselectItems
-
unselectItems
-
unselectItems
-
unselectItem
-
setChild
-
setParent
-
getChild
-
getParent
-