java.lang.Object
java.util.EventObject
org.jhotdraw8.base.event.Event<Figure>
org.jhotdraw8.draw.figure.FigurePropertyChangeEvent
- All Implemented Interfaces:
Serializable
FigurePropertyChangeEvent.
- Author:
- Werner Randelshofer
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionFigurePropertyChangeEvent(Figure source, Key<T> key, @Nullable T oldValue, @Nullable T newValue, boolean wasAdded, boolean wasRemoved) -
Method Summary
Methods inherited from class org.jhotdraw8.base.event.Event
getSourceMethods inherited from class java.util.EventObject
toString
-
Constructor Details
-
FigurePropertyChangeEvent
-
-
Method Details
-
getKey
Returns the key of the property that has changed.- Returns:
- the key or null
-
getOldValue
public <T> @Nullable T getOldValue() -
getNewValue
public <T> @Nullable T getNewValue() -
wasAdded
public boolean wasAdded()If the change is the result of an add operation.- Returns:
- true if a new key-value entry was added to the map.
-
wasRemoved
public boolean wasRemoved()If the change is the result of a remove operation.- Returns:
- true if an existing key-value entry was removed from the map.
-