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 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

      boolean isSelected(Object aObject)
      Checks whether the given Object is currently in the set of selected objects.
      Parameters:
      aObject - the Object to be checked.
      Returns:
      true if the Object is in this ILcdSelection, false otherwise.
    • getSelectedObjects

      default List<T> getSelectedObjects()
      Returns a List of the selected objects.
      Returns:
      an unmodifiable List of the objects in this ILcdSelection
      Since:
      2018.0
    • addSelectionListener

      void addSelectionListener(ILcdSelectionListener<T> aSelectionListener)
      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 this ILcdSelection, you can use a ALcdWeakSelectionListener instance as selection listener.
      Parameters:
      aSelectionListener - the ILcdSelectionListener to be added.
    • removeSelectionListener

      void removeSelectionListener(ILcdSelectionListener<T> aSelectionListener)
      Removes an ILcdSelectionListener from this ILcdSelection.
      Parameters:
      aSelectionListener - the ILcdSelectionListener to be removed.