Class AbstractSelection
- java.lang.Object
-
- org.locationtech.jts.jump.workbench.ui.AbstractSelection
-
- Direct Known Subclasses:
FeatureSelection
,LineStringSelection
,PartSelection
public abstract class AbstractSelection extends Object
Superclass for holding a user-selected collection ofFeature
items.
-
-
Constructor Summary
Constructors Constructor Description AbstractSelection(SelectionManager selectionManager)
-
Method Summary
-
-
-
Constructor Detail
-
AbstractSelection
public AbstractSelection(SelectionManager selectionManager)
-
-
Method Detail
-
getRendererContentID
public abstract String getRendererContentID()
-
items
public abstract List items(org.locationtech.jts.geom.Geometry geometry)
-
items
public Collection items(org.locationtech.jts.geom.Geometry geometry, Collection indices)
-
getFeatureToSelectedItemIndexCollectionMap
public CollectionMap getFeatureToSelectedItemIndexCollectionMap(Layer layer)
Note that some features in the map may not have selected items.
-
getSelectedItemIndices
public Collection getSelectedItemIndices(Layer layer, Feature feature)
-
getFeatureToSelectedItemCollectionMap
public CollectionMap getFeatureToSelectedItemCollectionMap(Layer layer)
Note that some features in the map may not have selected items.
-
getLayersWithSelectedItems
public Collection getLayersWithSelectedItems()
-
getFeaturesWithSelectedItems
public Collection getFeaturesWithSelectedItems()
-
getFeaturesWithSelectedItems
public Collection getFeaturesWithSelectedItems(Layer layer)
-
getSelectedItems
public Collection getSelectedItems()
-
getSelectedItems
public Collection getSelectedItems(Layer layer)
-
getSelectedItems
public Collection getSelectedItems(Layer layer, Feature feature)
-
getSelectedItems
public Collection 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 Collection indices(org.locationtech.jts.geom.Geometry geometry, Collection items)
-
unselectItems
public void unselectItems(Layer layer, CollectionMap featureToItemCollectionMap)
-
selectItems
public void selectItems(Layer layer, CollectionMap featureToItemCollectionMap)
-
selectItems
public void selectItems(Layer layer, Feature feature, Collection items)
-
unselectItems
public void unselectItems(Layer layer, Feature feature, Collection items)
-
itemsNotSelectedInAncestors
public Collection itemsNotSelectedInAncestors(Layer layer, Feature feature, Collection items)
-
selectedInAncestors
protected abstract boolean selectedInAncestors(Layer layer, Feature feature, org.locationtech.jts.geom.Geometry item)
-
unselectInDescendants
protected abstract void unselectInDescendants(Layer layer, Feature feature, Collection items)
-
selectItems
public void selectItems(Layer layer, Collection features)
-
unselectFromFeaturesWithModifiedItemCounts
public void unselectFromFeaturesWithModifiedItemCounts(Layer layer, Collection features, Collection oldFeatureClones)
-
unselectItems
public void unselectItems()
-
unselectItems
public void unselectItems(Layer layer)
-
unselectItems
public void unselectItems(Layer layer, Collection features)
-
setChild
public void setChild(AbstractSelection child)
-
setParent
public void setParent(AbstractSelection parent)
-
getChild
protected AbstractSelection getChild()
-
getParent
protected AbstractSelection getParent()
-
-