Class TLcyLayerSubsetList

java.lang.Object
com.luciad.lucy.map.TLcyLayerSubsetList
All Implemented Interfaces:
ILcyLayerSubsetList

public class TLcyLayerSubsetList extends Object implements ILcyLayerSubsetList
This is an implementation of the ILcyLayerSubsetList interface.
  • Constructor Details

    • TLcyLayerSubsetList

      public TLcyLayerSubsetList()
  • Method Details

    • addElement

      public void addElement(Object aObject, ILcdLayer aLayer)
      Description copied from interface: ILcyLayerSubsetList
      Adds an Object to the subset associated with the given ILcdLayer. aObject must belong to the ILcdModel that aLayer refers to.
      Specified by:
      addElement in interface ILcyLayerSubsetList
      Parameters:
      aObject - The Object to add.
      aLayer - The ILcdLayer aObject belongs to.
    • removeElement

      public void removeElement(Object aObject, ILcdLayer aLayer)
      Description copied from interface: ILcyLayerSubsetList
      Removes an Object that was in the subset associated with the given ILcdLayer.
      Specified by:
      removeElement in interface ILcyLayerSubsetList
      Parameters:
      aObject - The Object to remove.
      aLayer - The ILcdLayer aObject belongs to.
    • layers

      public Enumeration layers()
      Description copied from interface: ILcyLayerSubsetList
      Returns an Enumeration of all ILcdLayers in this list which are associated with at least one Object.
      Specified by:
      layers in interface ILcyLayerSubsetList
      Returns:
      An Enumeration of all ILcdLayers in this list which are associated with at least one Object.
    • layerSubset

      public Enumeration layerSubset(ILcdLayer aLayer)
      Description copied from interface: ILcyLayerSubsetList
      Returns an Enumeration of all Objects currently in the subset associated with the given ILcdLayer
      Specified by:
      layerSubset in interface ILcyLayerSubsetList
      Returns:
      An Enumeration of all Objects currently in the subset associated with the given ILcdLayer.
    • retrieveLayer

      public ILcdLayer retrieveLayer(Object aObject)
      Description copied from interface: ILcyLayerSubsetList
      Returns the first ILcdLayer encountered in this list that is associated with the given Object. Returns null if aObject is not associated with any ILcdLayer in this list.
      Specified by:
      retrieveLayer in interface ILcyLayerSubsetList
      Parameters:
      aObject - The object for which the layer should be retrieved.
      Returns:
      The first ILcdLayer associated with aObject.
    • asAssocs

      public ILcdAssoc[] asAssocs()
      Retrieves an array of ILcdAssoc. For each ILcdAssoc, the method getKey() returns an ILcdLayer, the method getValue() returns a Vector containing the Objects part of the subset of this ILcdLayer.
      Specified by:
      asAssocs in interface ILcyLayerSubsetList
      Returns:
      The array of ILcdAssoc objects associating the layers with their objects.
    • removeAllElements

      public void removeAllElements()
      Description copied from interface: ILcyLayerSubsetList
      Removes all the subsets.
      Specified by:
      removeAllElements in interface ILcyLayerSubsetList
    • elements

      public Enumeration elements()
      Description copied from interface: ILcyLayerSubsetList
      Returns an Enumeration of all the Objects in all the ILcdLayer subsets.
      Specified by:
      elements in interface ILcyLayerSubsetList
      Returns:
      An Enumeration of all the Objects in all the ILcdLayer subsets.
    • size

      public int size()
      Description copied from interface: ILcyLayerSubsetList
      Returns the number of Objects in all the ILcdLayer subsets.
      Specified by:
      size in interface ILcyLayerSubsetList
      Returns:
      The number of Objects in all the ILcdLayer subsets.
    • contains

      public boolean contains(Object aObject)
      Tests contains by comparing reference (not using Object.equals).
      Specified by:
      contains in interface ILcyLayerSubsetList
      Parameters:
      aObject - The object whose presence in this list is to be tested.
      Returns:
      true if the given Object belongs to one of the ILcdLayer subsets, false otherwise.