public class TLspLayerStateEvent extends EventObject
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.ILspLayer.addLayerStateListener(ILspLayerStateListener)
,
TLspLayerStateSupport
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
TLspLayerStateEvent.Type
The type of layer property that has changed.
|
source
Constructor and Description |
---|
TLspLayerStateEvent(ILspLayer aLayer,
TLspLayerStateEvent.Type aType,
TLspPaintRepresentation aPaintRepresentation,
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.
|
TLspPaintRepresentation |
getPaintRepresentation()
Returns the paint representation affected by the state change that
triggered this event.
|
TLspLayerStateEvent.Type |
getType()
Returns the type of property that has changed.
|
int |
hashCode() |
String |
toString() |
getSource
public TLspLayerStateEvent(ILspLayer aLayer, TLspLayerStateEvent.Type aType, TLspPaintRepresentation aPaintRepresentation, Object aOldValue, Object aNewValue)
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 propertypublic TLspLayerStateEvent.Type getType()
TLspLayerStateEvent.Type
public TLspPaintRepresentation getPaintRepresentation()
public Object getOldValue()
type
.public Object getNewValue()
type
.public ILspLayer getLayer()
public String toString()
toString
in class EventObject