public final class LayerEvent
extends Object
Event that indicates that some property of a specific layer has changed.
-
Constructor Summary
Constructors
Creates a new layer event that can be used to notify that the given property has changed for the given layer.
-
Method Summary
Returns the name of the property that changed.
Returns the affected layer.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
LayerEvent
public LayerEvent(@NotNull
Layer layer,
@NotNull
String changedProperty)
Creates a new layer event that can be used to notify that the given property has changed for the given layer.
- Parameters:
layer
- a layer
changedProperty
- the changed property
-
Method Details
-
getLayer
@NotNull
public Layer getLayer()
Returns the affected layer.
- Returns:
- the affected layer.
-
getChangedProperty
@NotNull
public String getChangedProperty()
Returns the name of the property that changed.
- Returns:
- the name of the property that changed.