Class TLspLayerStateEvent

java.lang.Object
java.util.EventObject
com.luciad.view.lightspeed.layer.TLspLayerStateEvent
All Implemented Interfaces:
Serializable

public class TLspLayerStateEvent extends EventObject
Event describing a change in the state of a property of an ILspLayer for a specific TLspPaintRepresentation.

The event comprises a TLspLayerStateEvent.Type indicating which type of property has changed, a reference to the affected layer, the affected paint representation and the old and new values.

Since:
2012.0
See Also:
  • Constructor Details

    • TLspLayerStateEvent

      public TLspLayerStateEvent(ILspLayer aLayer, TLspLayerStateEvent.Type aType, TLspPaintRepresentation aPaintRepresentation, Object aOldValue, Object aNewValue)
      Creates a new layer state change event with the given parameters.
      Parameters:
      aLayer - the layer whose state has changed
      aType - the type of state change
      aPaintRepresentation - the paint representation affected by the state change
      aOldValue - the old value of the property
      aNewValue - the new value of the property
  • Method Details

    • getType

      public TLspLayerStateEvent.Type getType()
      Returns the type of property that has changed.
      Returns:
      the event's type of change
      See Also:
    • getPaintRepresentation

      public TLspPaintRepresentation getPaintRepresentation()
      Returns the paint representation affected by the state change that triggered this event.
      Returns:
      the paint representation affected by the layer state change
    • getOldValue

      public Object getOldValue()
      The old value of the changed property. Its class depends on the type.
      Returns:
      the old value
    • getNewValue

      public Object getNewValue()
      The new value of the changed property. Its class depends on the type.
      Returns:
      the new value
    • getLayer

      public ILspLayer getLayer()
      Returns the layer whose state change triggered this event.
      Returns:
      the layer whose state change triggered this event
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class EventObject