com.vividsolutions.jump.workbench.ui
Class AbstractSelection

java.lang.Object
  extended by com.vividsolutions.jump.workbench.ui.AbstractSelection
Direct Known Subclasses:
FeatureSelection, LineStringSelection, PartSelection

public abstract class AbstractSelection
extends java.lang.Object

Superclass for holding a user-selected collection of Feature items.


Constructor Summary
AbstractSelection(SelectionManager selectionManager)
           
 
Method Summary
 java.util.Collection getFeaturesWithSelectedItems()
           
 java.util.Collection getFeaturesWithSelectedItems(Layer layer)
           
 CollectionMap getFeatureToSelectedItemCollectionMap(Layer layer)
          Note that some features in the map may not have selected items.
 CollectionMap getFeatureToSelectedItemIndexCollectionMap(Layer layer)
          Note that some features in the map may not have selected items.
 java.util.Collection getLayersWithSelectedItems()
           
abstract  java.lang.String getRendererContentID()
           
 java.util.Collection getSelectedItemIndices(Layer layer, Feature feature)
           
 java.util.Collection getSelectedItems()
           
 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 indices(com.vividsolutions.jts.geom.Geometry geometry, java.util.Collection items)
           
abstract  java.util.List items(com.vividsolutions.jts.geom.Geometry geometry)
           
 java.util.Collection items(com.vividsolutions.jts.geom.Geometry geometry, java.util.Collection indices)
           
 java.util.Collection itemsNotSelectedInAncestors(Layer layer, Feature feature, java.util.Collection items)
           
 void selectItems(Layer layer, java.util.Collection features)
           
 void selectItems(Layer layer, CollectionMap featureToItemCollectionMap)
           
 void selectItems(Layer layer, Feature feature)
           
 void selectItems(Layer layer, Feature feature, java.util.Collection items)
           
 void setChild(AbstractSelection child)
           
 void setParent(AbstractSelection parent)
           
 void unselectFromFeaturesWithModifiedItemCounts(Layer layer, java.util.Collection features, java.util.Collection oldFeatureClones)
           
 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, CollectionMap featureToItemCollectionMap)
           
 void unselectItems(Layer layer, Feature feature)
           
 void unselectItems(Layer layer, Feature feature, java.util.Collection items)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSelection

public AbstractSelection(SelectionManager selectionManager)
Method Detail

getRendererContentID

public abstract java.lang.String getRendererContentID()

items

public abstract java.util.List items(com.vividsolutions.jts.geom.Geometry geometry)

items

public java.util.Collection items(com.vividsolutions.jts.geom.Geometry geometry,
                                  java.util.Collection indices)

getFeatureToSelectedItemIndexCollectionMap

public CollectionMap getFeatureToSelectedItemIndexCollectionMap(Layer layer)
Note that some features in the map may not have selected items.


getSelectedItemIndices

public java.util.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 java.util.Collection getLayersWithSelectedItems()

getFeaturesWithSelectedItems

public java.util.Collection getFeaturesWithSelectedItems()

getFeaturesWithSelectedItems

public java.util.Collection getFeaturesWithSelectedItems(Layer layer)

getSelectedItems

public java.util.Collection getSelectedItems()

getSelectedItems

public java.util.Collection getSelectedItems(Layer layer)

getSelectedItems

public java.util.Collection getSelectedItems(Layer layer,
                                             Feature feature)

getSelectedItems

public java.util.Collection getSelectedItems(Layer layer,
                                             Feature feature,
                                             com.vividsolutions.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 java.util.Collection indices(com.vividsolutions.jts.geom.Geometry geometry,
                                    java.util.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,
                        java.util.Collection items)

unselectItems

public void unselectItems(Layer layer,
                          Feature feature,
                          java.util.Collection items)

itemsNotSelectedInAncestors

public java.util.Collection itemsNotSelectedInAncestors(Layer layer,
                                                        Feature feature,
                                                        java.util.Collection items)

selectItems

public void selectItems(Layer layer,
                        Feature feature)

selectItems

public void selectItems(Layer layer,
                        java.util.Collection features)

unselectFromFeaturesWithModifiedItemCounts

public void unselectFromFeaturesWithModifiedItemCounts(Layer layer,
                                                       java.util.Collection features,
                                                       java.util.Collection oldFeatureClones)

unselectItems

public void unselectItems()

unselectItems

public void unselectItems(Layer layer)

unselectItems

public void unselectItems(Layer layer,
                          java.util.Collection features)

unselectItems

public void unselectItems(Layer layer,
                          Feature feature)

unselectItem

public void unselectItem(Layer layer,
                         Feature feature,
                         int selectedItemIndex)

setChild

public void setChild(AbstractSelection child)

setParent

public void setParent(AbstractSelection parent)