Class FigurePropertyChangeEvent

java.lang.Object
java.util.EventObject
org.jhotdraw8.base.event.Event<Figure>
org.jhotdraw8.draw.figure.FigurePropertyChangeEvent
All Implemented Interfaces:
Serializable

public class FigurePropertyChangeEvent extends org.jhotdraw8.base.event.Event<Figure>
FigurePropertyChangeEvent.
Author:
Werner Randelshofer
See Also:
  • Constructor Details

  • Method Details

    • getKey

      public @NonNull Key<?> 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.