public abstract class AbstractSelection
extends java.lang.Object
Feature
items.Constructor and Description |
---|
AbstractSelection(SelectionManager selectionManager) |
Modifier and Type | Method and Description |
---|---|
protected AbstractSelection |
getChild() |
java.util.Collection<Feature> |
getFeaturesWithSelectedItems() |
java.util.Collection<Feature> |
getFeaturesWithSelectedItems(Layer layer) |
java.util.Map<Feature,java.util.List<com.vividsolutions.jts.geom.Geometry>> |
getFeatureToSelectedItemCollectionMap(Layer layer)
Returns a mapping of each feature to selected items in this feature.
|
java.util.Map<Feature,java.util.Set<java.lang.Integer>> |
getFeatureToSelectedItemIndexCollectionMap(Layer layer)
Returns a mapping of each feature to indices of selected items in this
feature.
|
java.util.Collection<Layer> |
getLayersWithSelectedItems() |
protected AbstractSelection |
getParent() |
abstract java.lang.String |
getRendererContentID() |
java.util.Set<java.lang.Integer> |
getSelectedItemIndices(Layer layer,
Feature feature)
Returns indices of selected items in this feature.
|
java.util.Collection<com.vividsolutions.jts.geom.Geometry> |
getSelectedItems() |
java.util.Collection<com.vividsolutions.jts.geom.Geometry> |
getSelectedItems(Layer layer) |
java.util.Collection<com.vividsolutions.jts.geom.Geometry> |
getSelectedItems(Layer layer,
Feature feature) |
java.util.Collection<com.vividsolutions.jts.geom.Geometry> |
getSelectedItems(Layer layer,
Feature feature,
com.vividsolutions.jts.geom.Geometry geometry) |
java.util.Set<java.lang.Integer> |
indices(com.vividsolutions.jts.geom.Geometry geometry,
java.util.Collection<com.vividsolutions.jts.geom.Geometry> items)
Returns indices of items in geometry.
|
abstract java.util.List<com.vividsolutions.jts.geom.Geometry> |
items(com.vividsolutions.jts.geom.Geometry geometry)
Each selection implementation has the responsability to return the
list of items composing a parent geometry.
|
java.util.List<com.vividsolutions.jts.geom.Geometry> |
items(com.vividsolutions.jts.geom.Geometry geometry,
java.util.Collection<java.lang.Integer> indices)
Returns items having these indices in geometry.
|
java.util.Collection |
itemsNotSelectedInAncestors(Layer layer,
Feature feature,
java.util.Collection items) |
protected abstract boolean |
selectedInAncestors(Layer layer,
Feature feature,
com.vividsolutions.jts.geom.Geometry item) |
void |
selectItems(Layer layer,
java.util.Collection features) |
void |
selectItems(Layer layer,
Feature feature) |
void |
selectItems(Layer layer,
Feature feature,
java.util.Collection items) |
void |
selectItems(Layer layer,
java.util.Map<Feature,java.util.List<com.vividsolutions.jts.geom.Geometry>> featureToItemCollectionMap) |
void |
setChild(AbstractSelection child) |
void |
setParent(AbstractSelection parent) |
void |
unselectFromFeaturesWithModifiedItemCounts(Layer layer,
java.util.Collection features,
java.util.Collection oldFeatureClones) |
protected abstract void |
unselectInDescendants(Layer layer,
Feature feature,
java.util.Collection items) |
void |
unselectItem(Layer layer,
Feature feature,
int selectedItemIndex) |
void |
unselectItems() |
void |
unselectItems(Layer layer) |
void |
unselectItems(Layer layer,
java.util.Collection features) |
void |
unselectItems(Layer layer,
Feature feature) |
void |
unselectItems(Layer layer,
Feature feature,
java.util.Collection items) |
void |
unselectItems(Layer layer,
java.util.Map<Feature,java.util.List<com.vividsolutions.jts.geom.Geometry>> featureToItemCollectionMap) |
public AbstractSelection(SelectionManager selectionManager)
public abstract java.lang.String getRendererContentID()
public abstract java.util.List<com.vividsolutions.jts.geom.Geometry> items(com.vividsolutions.jts.geom.Geometry geometry)
public java.util.List<com.vividsolutions.jts.geom.Geometry> items(com.vividsolutions.jts.geom.Geometry geometry, java.util.Collection<java.lang.Integer> indices)
geometry
- geometry to analyseindices
- indices of wanted geometriespublic java.util.Map<Feature,java.util.Set<java.lang.Integer>> getFeatureToSelectedItemIndexCollectionMap(Layer layer)
public java.util.Set<java.lang.Integer> getSelectedItemIndices(Layer layer, Feature feature)
public java.util.Map<Feature,java.util.List<com.vividsolutions.jts.geom.Geometry>> getFeatureToSelectedItemCollectionMap(Layer layer)
public java.util.Collection<Layer> getLayersWithSelectedItems()
public java.util.Collection<Feature> getFeaturesWithSelectedItems()
public java.util.Collection<Feature> getFeaturesWithSelectedItems(Layer layer)
public java.util.Collection<com.vividsolutions.jts.geom.Geometry> getSelectedItems()
public java.util.Collection<com.vividsolutions.jts.geom.Geometry> getSelectedItems(Layer layer)
public java.util.Collection<com.vividsolutions.jts.geom.Geometry> getSelectedItems(Layer layer, Feature feature)
public java.util.Collection<com.vividsolutions.jts.geom.Geometry> 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 indices.public java.util.Set<java.lang.Integer> indices(com.vividsolutions.jts.geom.Geometry geometry, java.util.Collection<com.vividsolutions.jts.geom.Geometry> items)
public void unselectItems(Layer layer, java.util.Map<Feature,java.util.List<com.vividsolutions.jts.geom.Geometry>> featureToItemCollectionMap)
public void selectItems(Layer layer, java.util.Map<Feature,java.util.List<com.vividsolutions.jts.geom.Geometry>> featureToItemCollectionMap)
public java.util.Collection itemsNotSelectedInAncestors(Layer layer, Feature feature, java.util.Collection items)
protected abstract boolean selectedInAncestors(Layer layer, Feature feature, com.vividsolutions.jts.geom.Geometry item)
protected abstract void unselectInDescendants(Layer layer, Feature feature, java.util.Collection items)
public void selectItems(Layer layer, java.util.Collection features)
public void unselectFromFeaturesWithModifiedItemCounts(Layer layer, java.util.Collection features, java.util.Collection oldFeatureClones)
public void unselectItems()
public void unselectItems(Layer layer)
public void unselectItems(Layer layer, java.util.Collection features)
public void setChild(AbstractSelection child)
public void setParent(AbstractSelection parent)
protected AbstractSelection getChild()
protected AbstractSelection getParent()