Class TLspLayerStateSupport

java.lang.Object
com.luciad.view.lightspeed.layer.TLspLayerStateSupport

public class TLspLayerStateSupport extends Object
Helper class for working with ILspLayerStateListener. This class can be used by ILspLayer implementations to manage layer state listeners and firing the corresponding events.
Since:
2012.0
  • Constructor Details

    • TLspLayerStateSupport

      public TLspLayerStateSupport(ILspLayer aLayer)
      Creates a new layer state support for the given layer.
      Parameters:
      aLayer - the layer that will use this TLspLayerStateSupport
  • Method Details

    • addLayerStateListener

      public void addLayerStateListener(ILspLayerStateListener aListener)
      Adds a layer state listener to be notified of state change events.
      Parameters:
      aListener - the listener to be added
    • removeLayerStateListener

      public void removeLayerStateListener(ILspLayerStateListener aListener)
      Removes the specified layer state listener.
      Parameters:
      aListener - the listener to be removed
    • fireLayerStateChange

      public void fireLayerStateChange(TLspLayerStateEvent aEvent)
      Propagates the specified layer state change event to all currently registered listeners.
      Parameters:
      aEvent - the event to be dispatched
    • fireLayerStateChange

      public void fireLayerStateChange(TLspLayerPaintStateEvent aEvent)
      Propagates the specified layer state change event to all currently registered listeners.
      Parameters:
      aEvent - the event to be dispatched
    • fireLayerStateChange

      public void fireLayerStateChange(TLspLayerPaintStateEvent.Type aType, TLspPaintRepresentationState aPaintRepresentationState, Object aOldValue, Object aNewValue)
      Creates a new TLspLayerStateEvent with the given properties and dispatches it to all currently registered listeners. The source of the generated event will be the layer passed to the constructor of this class.
      Parameters:
      aType - the event type
      aPaintRepresentationState - the affected paint representation state
      aOldValue - the old value
      aNewValue - the new value
    • fireLayerStateChange

      public void fireLayerStateChange(TLspLayerStateEvent.Type aType, TLspPaintRepresentation aPaintRepresentation, Object aOldValue, Object aNewValue)
      Creates a new TLspLayerStateEvent with the given properties and dispatches it to all currently registered listeners. The source of the generated event will be the layer passed to the constructor of this class.
      Parameters:
      aType - the event type
      aPaintRepresentation - the affected paint representation
      aOldValue - the old value
      aNewValue - the new value