Package com.luciad.view.lightspeed.layer
Class TLspLayerStateEvent
java.lang.Object
java.util.EventObject
com.luciad.view.lightspeed.layer.TLspLayerStateEvent
- All Implemented Interfaces:
Serializable
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:
-
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
ConstructorDescriptionTLspLayerStateEvent
(ILspLayer aLayer, TLspLayerStateEvent.Type aType, TLspPaintRepresentation aPaintRepresentation, 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 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
-
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 changedaType
- the type of state changeaPaintRepresentation
- the paint representation 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:
-
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
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
-