Class TLcdGXYLayerList

java.lang.Object
com.luciad.view.gxy.TLcdGXYLayerList
All Implemented Interfaces:
ILcdPropertyChangeSource, ILcdSelection<Object>, ILcdGXYLayer, ILcdGXYLayerList, ILcdLayer, Serializable
Direct Known Subclasses:
TLcdS52GXYCatalogueLayerList, TLcdS52GXYLevelLayerList

public class TLcdGXYLayerList extends Object implements ILcdGXYLayerList
Deprecated.
Default implementation of a ILcdGXYLayerList. It provides functionality to:
  • listen to property changes of the list, even if these are caused by the sublayers,
  • listen to selection changes of any sublayer in the list,
  • set properties of the list, which are applied to all sublayers,
  • poll properties of the list, which are combined values of the sublayers.

Since a layer list is an implementation of ILcdGXYLayer, it is regarded as such by the view to which it is added. Some care should thus be taken for certain operations:

  • Polling property values should be done on the layer list level. For example, this implementation will return true for the visible property when one of the sublayers is visible. However, it is still possible that some of the sublayers are invisible.
  • Setting property values may be done on the sublayer, but there may be no effect on the layer list properties. For example: setting a sublayer invisible, while other sublayers are still visible will not change the value of the visible property for the list.
  • Listeners should be added to the layer list. This implementation ensures that the proper listeners are added to the sublayers. Adding a listener to a sublayer will prevent notification of changes in other sublayers. Adding a listener to both the sublayer and the layer list will notify the listeners of the same change twice.

By overriding the method canAddSubGXYLayer(ILcdGXYLayer) method the layers to add to this list can be restricted, which would for example enable the creation of a layer list that represents a theme.

See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static boolean
    Deprecated.
    Indicates whether tracing information should be generated on the log or not.

    Fields inherited from interface com.luciad.view.gxy.ILcdGXYLayer

    ALL, BODIES, HANDLES, LABELS, SELECTION
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
    Creates a layer list with no layers.
    TLcdGXYLayerList(TLcdModelList aModelList, ILcdGXYLayerFactory aGXYLayerFactory)
    Deprecated.
    Constructor to create a TLcdGXYLayerList based on an existing TLcdModelList.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Deprecated.
    Adds a listener that will be notified of any changes of properties of this list.
    void
    Deprecated.
    Adds a listener that will be notified of changes to the selection of sublayers in this list.
    void
    addSubGXYLayer(ILcdGXYLayer aSubGXYLayer, boolean aIsAdjusting)
    Deprecated.
    Adds the given ILcdGXYLayer as a sublayer to this ILcdGXYLayerList.
    void
    addSubGXYLayer(ILcdGXYLayer aSubGXYLayer, ILcdFilter aObjectInLayerFilter, boolean aIsAdjusting)
    Deprecated.
    Adds the given ILcdGXYLayer as a sublayer, accompanied by a filter to determine whether an object is in the sublayers model or not.
    int
    applyOnInteract(ILcdFunction aFunction, Rectangle aBounds, boolean aStrictInteract, ILcdGXYView aGXYView)
    Deprecated.
    Passes the function to apply to all of the visible sub layers as long as the function returns true for objects in that sublayer.
    boolean
    Deprecated.
    Returns whether the sublayer can be added, meaning it has the same ILcdModelXYWorldTransfo class set as the layers already in the list, and its ILcdModel has the same ILcdModelReference.
    void
    clearSelection(int aDispatchEventMode)
    Deprecated.
    Clears the selection on all sublayers.
    boolean
    Deprecated.
    Checks whether the sublayer is in this ILcdGXYLayerList.
    void
    Deprecated.
    Fires events for all selection events collected by all sublayers.
    protected void
    Deprecated.
    Fire an existing PropertyChangeEvent to any registered listeners.
    getBounds(int aMode, ILcdGXYView aGXYView)
    Deprecated.
    Returns the union of the bounds of the sublayers.
    Deprecated.
    Finds a suitable editor for the given object by requesting the sublayers for a suitable editor.
    Deprecated.
    Finds a suitable label painter for the given object by requesting the sublayers for a suitable label painter.
    Deprecated.
    Finds a suitable painter for the given object by requesting the sublayers for a suitable painter.
    Deprecated.
    Returns the pen used for all basic drawing operations for all sublayers.
    Deprecated.
    Returns a small graphical representation for this layer list.
    Deprecated.
    Returns the short textual representation for this list.
    Deprecated.
    Returns the union of all label scale ranges of the sublayers.
    Deprecated.
    Returns a model list that contains all models of the layers in this list as submodels.
    Deprecated.
    Returns the class of the transformation used to transform model coordinates to view coordinates.
    Deprecated.
    Returns the filter used to find objects in the given sublayer.
    Deprecated.
    Returns the union of all scale ranges of the sublayers.
    int
    Deprecated.
    Returns the sum of all selection counts of all sublayers.
    getSubGXYLayer(int aIndex)
    Deprecated.
    Returns the sublayer at the location with the given index in the list.
    int
    Deprecated.
    Returns the number of sublayers in this ILcdGXYLayerList.
    int
    indexOf(ILcdGXYLayer aSubGXYLayer)
    Deprecated.
    Gets the index of the given sublayer.
    void
    insertSubGXYLayerAt(int aIndex, ILcdGXYLayer aSubGXYLayer, boolean aIsAdjusting)
    Deprecated.
    Inserts the given ILcdGXYLayer as a sublayer at the given index.
    void
    insertSubGXYLayerAt(int aIndex, ILcdGXYLayer aSubGXYLayer, ILcdFilter aObjectInLayerFilter, boolean aIsAdjusting)
    Deprecated.
    Inserts the given ILcdGXYLayer as a sublayer at the given index, accompanied by a filter to determine whether an object is in the sublayers model or not.
    boolean
    Deprecated.
    Returns whether at least one of the sublayers is editable.
    boolean
    Deprecated.
    Returns whether at least one of the sublayers supports editing.
    boolean
    Deprecated.
    Returns whether at least one of the sublayers is labeled.
    boolean
    Deprecated.
    Returns whether at least one of the sublayers supports labeling.
    protected boolean
    isObjectInLayer(Object aObject, ILcdGXYLayer aGXYLayer)
    Deprecated.
    Determines if the given layers model contains the given object, by checking if the object passes the filter associated with the layer.
    boolean
    Deprecated.
    Returns whether at least one of the sublayers is selectable.
    boolean
    Deprecated.
    Returns whether at least on the sublayers supports selection.
    boolean
    isSelected(Object aObject)
    Deprecated.
    Returns whether an object is selected in any of the sublayers.
    boolean
    Deprecated.
    Returns whether at least one of the sublayers is visible.
    void
    moveSubGXYLayerAt(int aIndex, ILcdGXYLayer aSubGXYLayer, boolean aIsAdjusting)
    Deprecated.
    Moves the given ILcdGXYLayer at the given index.
    void
    paint(Graphics aGraphics, int aMode, ILcdGXYView aGXYView)
    Deprecated.
    Paints all sublayers, one by one.
    void
    removeAllSubGXYLayers(boolean aIsAdjusting)
    Deprecated.
    Removes all sublayers from this list.
    void
    Deprecated.
    Removes a listener that will no longer be notified of any changes of properties of this list.
    void
    Deprecated.
    Removes a listener that will no longer be notified of changes to the selection of sublayers in this list.
    void
    removeSubGXYLayer(ILcdGXYLayer aSubGXYLayer, boolean aIsAdjusting)
    Deprecated.
    Removes the sublayer from this list.
    Deprecated.
    Returns a collection of all selected objects in all sublayers.
    void
    selectObject(Object aObject, boolean aSelection, int aDispatchEventMode)
    Deprecated.
    Selects or deselects an object in the last sublayer in which it appears.
    void
    setEditable(boolean aEditable)
    Deprecated.
    Sets all sublayers editable.
    void
    Deprecated.
    The pen to use for all basic drawing operations for all sublayers.
    void
    Deprecated.
    Sets the small graphical representation for this layer list.
    void
    setLabel(String aLabel)
    Deprecated.
    Sets the short textual representation for this list.
    void
    setLabeled(boolean aLabeled)
    Deprecated.
    Sets all sublayers labeled or not labeled.
    void
    setSelectable(boolean aSelectable)
    Deprecated.
    Sets all sublayers selectable at once.
    void
    setVisible(boolean aVisible)
    Deprecated.
    Sets the visibility of all sublayers at once.
    void
    Deprecated.
    Stops painting on all sublayers.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.luciad.view.gxy.ILcdGXYLayer

    getLabelMapScaleRange, getMapScaleRange

    Methods inherited from interface com.luciad.util.ILcdSelection

    getSelectedObjects
  • Field Details

    • TRACEON

      public static boolean TRACEON
      Deprecated.
      Indicates whether tracing information should be generated on the log or not.
  • Constructor Details

    • TLcdGXYLayerList

      public TLcdGXYLayerList()
      Deprecated.
      Creates a layer list with no layers. Note that in order to render this list, at least the pen should be set.
      See Also:
    • TLcdGXYLayerList

      public TLcdGXYLayerList(TLcdModelList aModelList, ILcdGXYLayerFactory aGXYLayerFactory)
      Deprecated.
      Constructor to create a TLcdGXYLayerList based on an existing TLcdModelList. The layers for the individual models of the model set are created using the given layer factory. Only layers which pass canAddSubGXYLayer(ILcdGXYLayer) will be added. Note that in order to render this list, the pen should be set explicitly with setGXYPen(ILcdGXYPen).
      Parameters:
      aModelList - Model set for which the layer list has to be created.
      aGXYLayerFactory - Layer factory for creating layers for the individual models of the set.
      See Also:
  • Method Details

    • firePropertyChange

      protected void firePropertyChange(PropertyChangeEvent aEvent)
      Deprecated.
      Fire an existing PropertyChangeEvent to any registered listeners.
      Parameters:
      aEvent - The PropertyChangeEvent object.
    • getSubGXYLayerCount

      public int getSubGXYLayerCount()
      Deprecated.
      Description copied from interface: ILcdGXYLayerList
      Returns the number of sublayers in this ILcdGXYLayerList.
      Specified by:
      getSubGXYLayerCount in interface ILcdGXYLayerList
      Returns:
      the number of sublayers in this ILcdGXYLayerList.
    • addSubGXYLayer

      public void addSubGXYLayer(ILcdGXYLayer aSubGXYLayer, boolean aIsAdjusting) throws IllegalArgumentException
      Deprecated.
      Adds the given ILcdGXYLayer as a sublayer to this ILcdGXYLayerList. This implementation delegates to addSubGXYLayer(ILcdGXYLayer, com.luciad.util.ILcdFilter, boolean) with a null filter.
      Specified by:
      addSubGXYLayer in interface ILcdGXYLayerList
      Parameters:
      aSubGXYLayer - the ILcdGXYLayer to add to the list.
      aIsAdjusting - true if more changes will be made immediately after this.
      Throws:
      IllegalArgumentException - if the layer could not be added when failing canAddSubGXYLayer(ILcdGXYLayer).
      See Also:
    • addSubGXYLayer

      public void addSubGXYLayer(ILcdGXYLayer aSubGXYLayer, ILcdFilter aObjectInLayerFilter, boolean aIsAdjusting) throws IllegalArgumentException
      Deprecated.
      Adds the given ILcdGXYLayer as a sublayer, accompanied by a filter to determine whether an object is in the sublayers model or not. Note that this can have an influence on the properties of the layer list. For example, when all sublayers currently in the list are not visible, but the sublayer to be added is visible, the layer list property visible will change from false to true.
      Specified by:
      addSubGXYLayer in interface ILcdGXYLayerList
      Parameters:
      aSubGXYLayer - the ILcdGXYLayer to add to the list.
      aObjectInLayerFilter - the ILcdFilter used to determine if an object is contained in this layer.
      aIsAdjusting - true if more changes will be made immediately after this.
      Throws:
      IllegalArgumentException - if the layer could not be added when failing canAddSubGXYLayer(ILcdGXYLayer).
      See Also:
    • insertSubGXYLayerAt

      public void insertSubGXYLayerAt(int aIndex, ILcdGXYLayer aSubGXYLayer, boolean aIsAdjusting) throws IllegalArgumentException
      Deprecated.
      Inserts the given ILcdGXYLayer as a sublayer at the given index. This implementation delegates to insertSubGXYLayerAt(int, ILcdGXYLayer, com.luciad.util.ILcdFilter, boolean) with a null filter.
      Specified by:
      insertSubGXYLayerAt in interface ILcdGXYLayerList
      Parameters:
      aIndex - the index of the location in the list where this layer should be placed.
      aSubGXYLayer - the ILcdGXYLayer to insert into the list.
      aIsAdjusting - true if more changes will be made immediately after this.
      Throws:
      IllegalArgumentException - will be thrown if this ILcdGXYLayerList contains at least one ILcdGXYLayer and the ILcdModelXYWorldTransfo class are different.
    • insertSubGXYLayerAt

      public void insertSubGXYLayerAt(int aIndex, ILcdGXYLayer aSubGXYLayer, ILcdFilter aObjectInLayerFilter, boolean aIsAdjusting) throws IllegalArgumentException
      Deprecated.
      Inserts the given ILcdGXYLayer as a sublayer at the given index, accompanied by a filter to determine whether an object is in the sublayers model or not. Note that this can have an influence on the properties of the layer list. For example, when all sublayers currently in the list are not visible, but the sublayer to be inserted is visible, the layer list property visible will change from false to true.
      Specified by:
      insertSubGXYLayerAt in interface ILcdGXYLayerList
      Parameters:
      aIndex - the index of the location in the list where this layer should be placed.
      aSubGXYLayer - the sublayer.
      aObjectInLayerFilter - the ILcdFilter used to determine if an object is contained in this layer.
      aIsAdjusting - true if more changes will be made immediately after this.
      Throws:
      IllegalArgumentException - if the layer could not be added when failing canAddSubGXYLayer(ILcdGXYLayer).
      See Also:
    • canAddSubGXYLayer

      public boolean canAddSubGXYLayer(ILcdGXYLayer aSubGXYLayer)
      Deprecated.
      Returns whether the sublayer can be added, meaning it has the same ILcdModelXYWorldTransfo class set as the layers already in the list, and its ILcdModel has the same ILcdModelReference. This method is called from all methods adding or inserting sublayers to the layer list.
      Parameters:
      aSubGXYLayer - the sublayer.
      Returns:
      true if the sublayers model has the same model reference as the layers already in the list and the layer has the same model XY world transformation class set as the layers already in the list.
      See Also:
    • getSubGXYLayer

      public ILcdGXYLayer getSubGXYLayer(int aIndex)
      Deprecated.
      Description copied from interface: ILcdGXYLayerList
      Returns the sublayer at the location with the given index in the list.
      Specified by:
      getSubGXYLayer in interface ILcdGXYLayerList
      Parameters:
      aIndex - the index of the location in the list.
      Returns:
      the ILcdGXYLayer at the location with the given index.
    • indexOf

      public int indexOf(ILcdGXYLayer aSubGXYLayer) throws NoSuchElementException
      Deprecated.
      Description copied from interface: ILcdGXYLayerList
      Gets the index of the given sublayer.
      Specified by:
      indexOf in interface ILcdGXYLayerList
      Parameters:
      aSubGXYLayer - the sublayer to find the index of.
      Returns:
      the index of the given sublayer.
      Throws:
      NoSuchElementException - when the given sublayer is not in this ILcdGXYLayerList.
    • moveSubGXYLayerAt

      public void moveSubGXYLayerAt(int aIndex, ILcdGXYLayer aSubGXYLayer, boolean aIsAdjusting) throws NoSuchElementException, ArrayIndexOutOfBoundsException
      Deprecated.
      Moves the given ILcdGXYLayer at the given index. If aIsAdjusting is true, then a PropertyChanged event will be sent, no event will be sent otherwise.
      Specified by:
      moveSubGXYLayerAt in interface ILcdGXYLayerList
      Parameters:
      aIndex - the index of the new location in the ILcdGXYLayerList.
      aSubGXYLayer - the sublayer to move.
      aIsAdjusting - true if more changes will be made immediately after this.
      Throws:
      NoSuchElementException - when the given sublayer is not in this ILcdGXYLayerList.
      ArrayIndexOutOfBoundsException - when the given index is negative or not smaller than the number of sublayers.
    • removeSubGXYLayer

      public void removeSubGXYLayer(ILcdGXYLayer aSubGXYLayer, boolean aIsAdjusting) throws NoSuchElementException
      Deprecated.
      Description copied from interface: ILcdGXYLayerList
      Removes the sublayer from this list.
      Specified by:
      removeSubGXYLayer in interface ILcdGXYLayerList
      Parameters:
      aSubGXYLayer - the sublayer.
      aIsAdjusting - true if more changes will be made immediately after this.
      Throws:
      NoSuchElementException - when the given sublayer is not in this ILcdGXYLayerList.
    • removeAllSubGXYLayers

      public void removeAllSubGXYLayers(boolean aIsAdjusting)
      Deprecated.
      Description copied from interface: ILcdGXYLayerList
      Removes all sublayers from this list.
      Specified by:
      removeAllSubGXYLayers in interface ILcdGXYLayerList
      Parameters:
      aIsAdjusting - true if more changes will be made immediately after this.
    • containsSubGXYLayer

      public boolean containsSubGXYLayer(ILcdGXYLayer aSubGXYLayer)
      Deprecated.
      Description copied from interface: ILcdGXYLayerList
      Checks whether the sublayer is in this ILcdGXYLayerList.
      Specified by:
      containsSubGXYLayer in interface ILcdGXYLayerList
      Parameters:
      aSubGXYLayer - the sublayer.
      Returns:
      true if the sublayer is in this ILcdGXYLayerList, false otherwise.
    • getObjectInLayerFilter

      public ILcdFilter getObjectInLayerFilter(ILcdGXYLayer aSubGXYLayer)
      Deprecated.
      Description copied from interface: ILcdGXYLayerList
      Returns the filter used to find objects in the given sublayer.
      Specified by:
      getObjectInLayerFilter in interface ILcdGXYLayerList
      Parameters:
      aSubGXYLayer - the sublayer for which all elements in its model should pass the filter.
      Returns:
      the ILcdFilter that selects the elements in the given sublayer.
    • paint

      public void paint(Graphics aGraphics, int aMode, ILcdGXYView aGXYView)
      Deprecated.
      Paints all sublayers, one by one.
      Specified by:
      paint in interface ILcdGXYLayer
      Parameters:
      aGraphics - the Graphics to paint on.
      aMode - indicates what should be painted and how it should be painted.
      aGXYView - the view to paint for.
      See Also:
    • getModel

      public ILcdModel getModel()
      Deprecated.
      Returns a model list that contains all models of the layers in this list as submodels.
      Specified by:
      getModel in interface ILcdLayer
      Returns:
      a model list that contains all models of the layers in this list as submodels.
    • getSelectionCount

      public int getSelectionCount()
      Deprecated.
      Returns the sum of all selection counts of all sublayers.
      Specified by:
      getSelectionCount in interface ILcdSelection<Object>
      Returns:
      the sum of all selection counts of all sublayers.
    • applyOnInteract

      public int applyOnInteract(ILcdFunction aFunction, Rectangle aBounds, boolean aStrictInteract, ILcdGXYView aGXYView)
      Deprecated.
      Passes the function to apply to all of the visible sub layers as long as the function returns true for objects in that sublayer.
      Specified by:
      applyOnInteract in interface ILcdGXYLayer
      Parameters:
      aFunction - the function to apply to all objects in the models of the sublayers. Note that this function may be wrapped and sublayers must not assume that this function is applied directly to them.
      aBounds - the view bounds containing the objects to which the function will be applied.
      aStrictInteract - whether or not only objects strictly interacting with the view bounds should be taken into account
      aGXYView - the view in which the objects are rendered.
      Returns:
      the number of objects to which the function was applied.
      See Also:
    • setLabel

      public void setLabel(String aLabel)
      Deprecated.
      Sets the short textual representation for this list.
      Specified by:
      setLabel in interface ILcdLayer
      Parameters:
      aLabel - the short textual representation to use for this list.
    • getLabel

      public String getLabel()
      Deprecated.
      Returns the short textual representation for this list.
      Specified by:
      getLabel in interface ILcdLayer
      Returns:
      the short textual representation for this list.
    • selectedObjects

      public Enumeration selectedObjects()
      Deprecated.
      Returns a collection of all selected objects in all sublayers. Note that an object might appear multiple times as it may be selected in multiple sublayers.
      Specified by:
      selectedObjects in interface ILcdSelection<Object>
      Returns:
      a collection of all selected objects in all sublayers.
    • getBounds

      public ILcdBounds getBounds(int aMode, ILcdGXYView aGXYView) throws TLcdNoBoundsException
      Deprecated.
      Returns the union of the bounds of the sublayers. Sublayers which do not have bounds are ignored.
      Specified by:
      getBounds in interface ILcdGXYLayer
      Parameters:
      aMode - the layer mode to generate the bounds for.
      aGXYView - the view in which this layer list is displayed.
      Returns:
      the union of the bounds of the sublayers.
      Throws:
      TLcdNoBoundsException - when the list contains no layers, or when all the sublayers of the list generated a no bounds exception.
      See Also:
    • isSelected

      public boolean isSelected(Object aObject)
      Deprecated.
      Returns whether an object is selected in any of the sublayers.
      Specified by:
      isSelected in interface ILcdSelection<Object>
      Parameters:
      aObject - the object to check.
      Returns:
      true if the object is selected in any of the sublayers. false otherwise.
    • stopPainting

      public void stopPainting()
      Deprecated.
      Stops painting on all sublayers.
      Specified by:
      stopPainting in interface ILcdGXYLayer
      See Also:
    • isVisible

      public boolean isVisible()
      Deprecated.
      Returns whether at least one of the sublayers is visible.
      Specified by:
      isVisible in interface ILcdLayer
      Returns:
      true if at least one of the sublayers is visible. false if all sublayers are invisible.
      See Also:
    • addSelectionListener

      public void addSelectionListener(ILcdSelectionListener aListener)
      Deprecated.
      Adds a listener that will be notified of changes to the selection of sublayers in this list. Note that the source of the event will always be the list, not the sublayer in which selection changes may have occurred.
      Specified by:
      addSelectionListener in interface ILcdSelection<Object>
      Parameters:
      aListener - a listener that will be notified of changes to the selection of sublayers in this list.
    • getScaleRange

      public ILcdInterval getScaleRange()
      Deprecated.
      Returns the union of all scale ranges of the sublayers. This will be null only if none of the sublayers have a scale range. This implies that even when only one layer has a scale range, the layer list will assume that scale range.
      Specified by:
      getScaleRange in interface ILcdGXYLayer
      Returns:
      the union of the scale ranges of all sublayers.
      See Also:
    • setVisible

      public void setVisible(boolean aVisible)
      Deprecated.
      Sets the visibility of all sublayers at once. Note that this will only fire one property change event for the layer list.
      Specified by:
      setVisible in interface ILcdLayer
      Parameters:
      aVisible - true to make all sublayers visible at once, false to make them all invisible at once.
      See Also:
    • removeSelectionListener

      public void removeSelectionListener(ILcdSelectionListener aListener)
      Deprecated.
      Removes a listener that will no longer be notified of changes to the selection of sublayers in this list.
      Specified by:
      removeSelectionListener in interface ILcdSelection<Object>
      Parameters:
      aListener - a listener that no longer will be notified of changes to the selection of sublayers in this list.
    • getLabelScaleRange

      public ILcdInterval getLabelScaleRange()
      Deprecated.
      Returns the union of all label scale ranges of the sublayers. This will be null only if none of the sublayers have a label scale range. This implies that even when only one layer has a label scale range, the layer list will assume that labeled scale range.
      Specified by:
      getLabelScaleRange in interface ILcdGXYLayer
      Returns:
      the union of all label scale ranges of the sublayers.
      See Also:
    • isSelectableSupported

      public boolean isSelectableSupported()
      Deprecated.
      Returns whether at least on the sublayers supports selection.
      Specified by:
      isSelectableSupported in interface ILcdLayer
      Returns:
      true if at least on the sublayers supports selection, false only if none of the sublayers support selection.
      See Also:
    • isObjectInLayer

      protected boolean isObjectInLayer(Object aObject, ILcdGXYLayer aGXYLayer)
      Deprecated.
      Determines if the given layers model contains the given object, by checking if the object passes the filter associated with the layer. If no filter was associated with the layer, the models elements are traversed to find the object.
      Parameters:
      aObject - the object to find
      aGXYLayer - the ILcdGXYLayer to check
      Returns:
      true if the layers model contains the object.
      See Also:
    • getGXYPainter

      public ILcdGXYPainter getGXYPainter(Object aObject)
      Deprecated.
      Finds a suitable painter for the given object by requesting the sublayers for a suitable painter. If multiple painters are found the painter for the first sublayer that contains the object is returned.
      Specified by:
      getGXYPainter in interface ILcdGXYLayer
      Parameters:
      aObject - the object to find a painter for. Note that it would be possible to request a painter for an object that is not in any of the sublayers.
      Returns:
      a suitable painter for the given object. If multiple painters are found the painter for the first sublayer that contains the object is returned.
    • isSelectable

      public boolean isSelectable()
      Deprecated.
      Returns whether at least one of the sublayers is selectable.
      Specified by:
      isSelectable in interface ILcdLayer
      Returns:
      true if one of the sublayers is selectable, false only if none of the sublayers are selectable.
      See Also:
    • getGXYEditor

      public ILcdGXYEditor getGXYEditor(Object aObject)
      Deprecated.
      Finds a suitable editor for the given object by requesting the sublayers for a suitable editor. If multiple editors are found the editor for the first sublayer that contains the object is returned.
      Specified by:
      getGXYEditor in interface ILcdGXYLayer
      Parameters:
      aObject - the object to find a editor for. Note that it would be possible to request an editor for an object that is not in any of the sublayers.
      Returns:
      a suitable editor for the given object. If multiple editors are found the editor for the first sublayer that contains the object is returned.
    • setSelectable

      public void setSelectable(boolean aSelectable)
      Deprecated.
      Sets all sublayers selectable at once.
      Specified by:
      setSelectable in interface ILcdLayer
      Parameters:
      aSelectable - true to set all sublayers selectable at once, false to set all sublayers not selectable at once.
      See Also:
    • getGXYLabelPainter

      public ILcdGXYLabelPainter getGXYLabelPainter(Object aObject)
      Deprecated.
      Finds a suitable label painter for the given object by requesting the sublayers for a suitable label painter. If multiple label painters are found the label painter for the first sublayer that contains the object is returned.
      Specified by:
      getGXYLabelPainter in interface ILcdGXYLayer
      Parameters:
      aObject - the object to find a label painter for. Note that it would be possible to request a label painter for an object that is not in any of the sublayers.
      Returns:
      a suitable label painter for the given object. If multiple label painters are found the label painter for the first sublayer that contains the object is returned.
    • isEditableSupported

      public boolean isEditableSupported()
      Deprecated.
      Returns whether at least one of the sublayers supports editing.
      Specified by:
      isEditableSupported in interface ILcdLayer
      Returns:
      true if one of the sublayers supports editing, false only if none of the sublayers supports editing.
      See Also:
    • getGXYPen

      public ILcdGXYPen getGXYPen()
      Deprecated.
      Returns the pen used for all basic drawing operations for all sublayers. This property should be set on the list itself, as no pen of any of the sublayers is used.
      Specified by:
      getGXYPen in interface ILcdGXYLayer
      Returns:
      the pen used for all basic drawing operations for all sublayers.
      See Also:
    • setGXYPen

      public void setGXYPen(ILcdGXYPen aGXYPen)
      Deprecated.
      The pen to use for all basic drawing operations for all sublayers. The default value is null. Note that this value needs to be set before any rendering operation can occur.
      Specified by:
      setGXYPen in interface ILcdGXYLayerList
      Parameters:
      aGXYPen - the pen to use for all basic drawing operations for all sublayers.
      See Also:
    • isEditable

      public boolean isEditable()
      Deprecated.
      Returns whether at least one of the sublayers is editable.
      Specified by:
      isEditable in interface ILcdLayer
      Returns:
      true if one of the sublayers is editable, false only if none of the sublayers is editable.
      See Also:
    • setIcon

      public void setIcon(ILcdIcon aIcon)
      Deprecated.
      Sets the small graphical representation for this layer list. By default no icon is set.
      Specified by:
      setIcon in interface ILcdLayer
      Parameters:
      aIcon - a small graphical representation for this layer list.
      See Also:
    • getIcon

      public ILcdIcon getIcon()
      Deprecated.
      Returns a small graphical representation for this layer list.
      Specified by:
      getIcon in interface ILcdLayer
      Returns:
      a small graphical representation for this layer list.
    • setEditable

      public void setEditable(boolean aEditable)
      Deprecated.
      Sets all sublayers editable.
      Specified by:
      setEditable in interface ILcdLayer
      Parameters:
      aEditable - true to make all sublayers editable, false to make all sublayers non editable.
      See Also:
    • getModelXYWorldTransfoClass

      public Class getModelXYWorldTransfoClass()
      Deprecated.
      Returns the class of the transformation used to transform model coordinates to view coordinates. Note that this value should be common for all sublayers.
      Specified by:
      getModelXYWorldTransfoClass in interface ILcdGXYLayer
      Returns:
      the common model XY world transformation class for all sublayers.
    • selectObject

      public void selectObject(Object aObject, boolean aSelection, int aDispatchEventMode)
      Deprecated.
      Selects or deselects an object in the last sublayer in which it appears.
      Specified by:
      selectObject in interface ILcdLayer
      Parameters:
      aObject - the object to select or deselect
      aSelection - whether to select or deselect the object
      aDispatchEventMode - indication of whether the selection listeners should be notified.
      See Also:
    • isLabeledSupported

      public boolean isLabeledSupported()
      Deprecated.
      Returns whether at least one of the sublayers supports labeling.
      Specified by:
      isLabeledSupported in interface ILcdGXYLayer
      Returns:
      true if at least one of the sublayers supports labeling, false only if none of the sublayers supports labeling.
    • fireCollectedSelectionChanges

      public void fireCollectedSelectionChanges()
      Deprecated.
      Fires events for all selection events collected by all sublayers. Note that the source of the event will always be the layer list, not the sublayer.
      Specified by:
      fireCollectedSelectionChanges in interface ILcdLayer
    • isLabeled

      public boolean isLabeled()
      Deprecated.
      Returns whether at least one of the sublayers is labeled.
      Specified by:
      isLabeled in interface ILcdGXYLayer
      Returns:
      true if one of the sublayers is labeled, false only if none of the sublayers is labeled.
      See Also:
    • setLabeled

      public void setLabeled(boolean aLabeled)
      Deprecated.
      Sets all sublayers labeled or not labeled.
      Specified by:
      setLabeled in interface ILcdGXYLayer
      Parameters:
      aLabeled - true to set all sublayers labeled, false to set all sublayers not labeled.
    • clearSelection

      public void clearSelection(int aDispatchEventMode)
      Deprecated.
      Clears the selection on all sublayers.
      Specified by:
      clearSelection in interface ILcdLayer
      Parameters:
      aDispatchEventMode - designates whether listeners should be notified of this clearance.
      See Also:
    • addPropertyChangeListener

      public void addPropertyChangeListener(PropertyChangeListener aListener)
      Deprecated.
      Adds a listener that will be notified of any changes of properties of this list. Note that property changes of the list may be caused by a property change of a sublayer. For example, when the last visible layer is turned invisible, an event will be fired. If however, another sublayer is visible, the visibility of the list has not changed and no event will be fired. In any case, if an event is fired, the source of the event will be the list, never a sublayer.
      Specified by:
      addPropertyChangeListener in interface ILcdPropertyChangeSource
      Parameters:
      aListener - will be notified when one of the properties of the list changes.
      See Also:
    • removePropertyChangeListener

      public void removePropertyChangeListener(PropertyChangeListener aListener)
      Deprecated.
      Removes a listener that will no longer be notified of any changes of properties of this list.
      Specified by:
      removePropertyChangeListener in interface ILcdPropertyChangeSource
      Parameters:
      aListener - will no longer be notified when one of the properties of the list changes.
      See Also: