Class TLspLayerPaintStateEvent

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

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

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

Since:
2012.0
See Also:
  • Constructor Details

    • TLspLayerPaintStateEvent

      public TLspLayerPaintStateEvent(ILspLayer aLayer, TLspLayerPaintStateEvent.Type aType, TLspPaintRepresentationState aPaintRepresentationState, 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
      aPaintRepresentationState - the paint representation state affected by the state change
      aOldValue - the old value of the property
      aNewValue - the new value of the property
  • Method Details

    • getType

      Returns the type of property that has changed.
      Returns:
      the event's type of change
      See Also:
    • getPaintRepresentationState

      public TLspPaintRepresentationState getPaintRepresentationState()
      Returns the paint representation state 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