public class TLspLayerPaintStateEvent
extends java.util.EventObject
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.Modifier and Type | Class and Description |
---|---|
static class |
TLspLayerPaintStateEvent.Type
The type of layer property that has changed.
|
Constructor and Description |
---|
TLspLayerPaintStateEvent(ILspLayer aLayer,
TLspLayerPaintStateEvent.Type aType,
TLspPaintRepresentationState aPaintRepresentationState,
java.lang.Object aOldValue,
java.lang.Object aNewValue)
Creates a new layer state change event with the given parameters.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
ILspLayer |
getLayer()
Returns the layer whose state change triggered this event.
|
java.lang.Object |
getNewValue()
The new value of the changed property.
|
java.lang.Object |
getOldValue()
The old value of the changed property.
|
TLspPaintRepresentationState |
getPaintRepresentationState()
Returns the paint representation state affected by the state change that
triggered this event.
|
TLspLayerPaintStateEvent.Type |
getType()
Returns the type of property that has changed.
|
int |
hashCode() |
java.lang.String |
toString() |
public TLspLayerPaintStateEvent(ILspLayer aLayer, TLspLayerPaintStateEvent.Type aType, TLspPaintRepresentationState aPaintRepresentationState, java.lang.Object aOldValue, java.lang.Object aNewValue)
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 propertypublic TLspLayerPaintStateEvent.Type getType()
TLspLayerPaintStateEvent.Type
public TLspPaintRepresentationState getPaintRepresentationState()
public java.lang.Object getOldValue()
type
.public java.lang.Object getNewValue()
type
.public ILspLayer getLayer()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.util.EventObject