public class TLspLayerPaintStateEvent extends 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.
|
source
Constructor and Description |
---|
TLspLayerPaintStateEvent(ILspLayer aLayer,
TLspLayerPaintStateEvent.Type aType,
TLspPaintRepresentationState aPaintRepresentationState,
Object aOldValue,
Object aNewValue)
Creates a new layer state change event with the given parameters.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
ILspLayer |
getLayer()
Returns the layer whose state change triggered this event.
|
Object |
getNewValue()
The new value of the changed property.
|
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() |
String |
toString() |
getSource
public TLspLayerPaintStateEvent(ILspLayer aLayer, TLspLayerPaintStateEvent.Type aType, TLspPaintRepresentationState aPaintRepresentationState, Object aOldValue, 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 Object getOldValue()
type
.public Object getNewValue()
type
.public ILspLayer getLayer()
public String toString()
toString
in class EventObject