Package com.luciad.util
Interface ILcdSelection<T>
- Type Parameters:
T
- the type of the objects that will be selected
- All Known Subinterfaces:
ILcdGXYAsynchronousLayerWrapper
,ILcdGXYEditableLabelsLayer
,ILcdGXYLayer
,ILcdGXYLayerList
,ILcdLayer
,ILcdLayerTreeNode
,ILspEditableStyledLayer
,ILspImageProjectionLayer
,ILspInteractivePaintableLayer
,ILspLayer
,ILspPaintableLayer
,ILspStyledLayer
- All Known Implementing Classes:
ALspLayer
,TLcdGXYAsynchronousEditableLabelsLayerTreeNodeWrapper
,TLcdGXYAsynchronousEditableLabelsLayerWrapper
,TLcdGXYAsynchronousLayerTreeNodeWrapper
,TLcdGXYAsynchronousLayerWrapper
,TLcdGXYDensityLayer
,TLcdGXYLayer
,TLcdGXYLayerList
,TLcdGXYLayerTreeNode
,TLcdGXYLspAsynchronousLayerTreeNodeWrapper
,TLcdGXYLspAsynchronousLayerWrapper
,TLcdKML22GXYLayer
,TLcdLayer
,TLcdMapGeorefGridLayer
,TLcdMapLonLatGridLayer
,TLcdMGRSGridLayer
,TLcdMultilevelGridLayer
,TLcdPOLLayer
,TLcdS52GXYCatalogueLayer
,TLcdS52GXYCatalogueLayerList
,TLcdS52GXYLayer
,TLcdS52GXYLevelLayerList
,TLcdSelectionSupport
,TLcdUPSGridLayer
,TLcdUTMGridLayer
,TLcdVPFLayer
,TLcdWMSProxyGXYLayer
,TLcdXYGridLayer
,TLcyAreaOfInterestLayer
,TLcyDynamicLonLatGridLayer
,TLcyPIMGXYLayer
,TLcySnappableGXYLayer
,com.luciad.internal.lucy.map.TLcyStyledSnappableGXYLayer
,TLfnGXYVectorLayer
,TLspGXYLayerAdapter
,TLspGXYLayerTreeNodeAdapter
,TLspLayer
,TLspLayerTreeNode
,TLspRasterLayer
public interface ILcdSelection<T>
Supports the selection of objects.
It allows
iterating
over the selected objects,
testing
if an object is selected,
and subscribing
to be notified of any
changes in the selection.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addSelectionListener
(ILcdSelectionListener<T> aSelectionListener) Adds a listener to this selection.Returns aList
of the selected objects.int
Returns the number of objects in this selection.boolean
isSelected
(Object aObject) Checks whether the givenObject
is currently in the set of selected objects.void
removeSelectionListener
(ILcdSelectionListener<T> aSelectionListener) Removes anILcdSelectionListener
from thisILcdSelection
.Returns the objects in this selection.
-
Method Details
-
getSelectionCount
int getSelectionCount()Returns the number of objects in this selection.- Returns:
- the number of objects in this
ILcdSelection
.
-
selectedObjects
Enumeration<T> selectedObjects()Returns the objects in this selection.- Returns:
- the objects currently in this
ILcdSelection
.
-
isSelected
Checks whether the givenObject
is currently in the set of selected objects.- Parameters:
aObject
- theObject
to be checked.- Returns:
true
if theObject
is in thisILcdSelection
, false otherwise.
-
getSelectedObjects
Returns aList
of the selected objects.- Returns:
- an unmodifiable
List
of the objects in thisILcdSelection
- Since:
- 2018.0
-
addSelectionListener
Adds a listener to this selection. In case you need to register a listener which keeps a reference to an object with a shorter life-time than thisILcdSelection
, you can use aALcdWeakSelectionListener
instance as selection listener.- Parameters:
aSelectionListener
- theILcdSelectionListener
to be added.
-
removeSelectionListener
Removes anILcdSelectionListener
from thisILcdSelection
.- Parameters:
aSelectionListener
- theILcdSelectionListener
to be removed.
-