Enum Class DirtyBits

java.lang.Object
java.lang.Enum<DirtyBits>
org.jhotdraw8.draw.model.DirtyBits
All Implemented Interfaces:
Serializable, Comparable<DirtyBits>, Constable

public enum DirtyBits extends Enum<DirtyBits>
DirtyBits describes how changing a property value of a Figure affects dependent objects.
Author:
Werner Randelshofer
  • Enum Constant Details

    • STATE

      public static final DirtyBits STATE
      Affects the state of the figure.

      All objects which depend on the state of the figure need to be updated.

    • NODE

      public static final DirtyBits NODE
      Affects the JavaFX Node created by the figure.

      All cached JavaFX Nodes created by the figure need to be updated.

    • LAYOUT

      public static final DirtyBits LAYOUT
      Affects the layout of the figure, the layout of its ancestors and the layout of layout observing figures.

      Method Figure#layoutNotify must be called on the figure, then in ascending order on all its ancestors which perform layout, and then on all dependent figures and their ancestors.

    • LAYOUT_OBSERVERS

      public static final DirtyBits LAYOUT_OBSERVERS
      Affects the layout of layout observing figures.

      Method Figure#layoutNotify must be called on all dependent figures and their ancestors.

    • STYLE

      public static final DirtyBits STYLE
      Affects the style of the figure.

      Method Figure#stylesheetNotify must be called on the figure and all its descendants.

    • LAYOUT_SUBJECT

      public static final DirtyBits LAYOUT_SUBJECT
      Affects the layout subject(s) of the figure.

      Method Figure#layoutSubjectChangeNotify must be called on the figure.

    • LAYOUT_OBSERVERS_ADDED_OR_REMOVED

      public static final DirtyBits LAYOUT_OBSERVERS_ADDED_OR_REMOVED
      Affects a figure which is layout subject of other figures.

      Method Figure#layoutObserverChangeNotify must be called on the figure.

    • TRANSFORM

      public static final DirtyBits TRANSFORM
      Affects the transform of the figure and all descendant figures.

      Method Figure#transformNotify must be called on the figure and all its descendant figures.

    • TRANSFORM_NOTIFY

      public static final DirtyBits TRANSFORM_NOTIFY
      This is internally used by DrawingModel for marking figures which need transformNotify.

      Method Figure#transformNotify must be called on the figure.

  • Method Details

    • values

      public static DirtyBits[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static DirtyBits valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null