Package com.luciad.view.lightspeed.layer
Class TLspLayerPaintStateEvent
java.lang.Object
java.util.EventObject
com.luciad.view.lightspeed.layer.TLspLayerPaintStateEvent
- All Implemented Interfaces:
Serializable
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:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The type of layer property that has changed. -
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionTLspLayerPaintStateEvent
(ILspLayer aLayer, TLspLayerPaintStateEvent.Type aType, TLspPaintRepresentationState aPaintRepresentationState, Object aOldValue, Object aNewValue) Creates a new layer state change event with the given parameters. -
Method Summary
Modifier and TypeMethodDescriptionboolean
getLayer()
Returns the layer whose state change triggered this event.The new value of the changed property.The old value of the changed property.Returns the paint representation state affected by the state change that triggered this event.getType()
Returns the type of property that has changed.int
hashCode()
toString()
Methods inherited from class java.util.EventObject
getSource
-
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 changedaType
- the type of state changeaPaintRepresentationState
- the paint representation state affected by the state changeaOldValue
- the old value of the propertyaNewValue
- 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
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
The old value of the changed property. Its class depends on thetype
.- Returns:
- the old value
-
getNewValue
The new value of the changed property. Its class depends on thetype
.- Returns:
- the new value
-
getLayer
Returns the layer whose state change triggered this event.- Returns:
- the layer whose state change triggered this event
-
equals
-
hashCode
public int hashCode() -
toString
- Overrides:
toString
in classEventObject
-