Package swingtree

Enum Class UI.Layer

All Implemented Interfaces:
Serializable, Comparable<UI.Layer>, Constable, UIEnum<UI.Layer>
Enclosing class:
UI

@Immutable public static enum UI.Layer extends Enum<UI.Layer> implements UIEnum<UI.Layer>
Instances of this enum are used to configure onto which layer a particular style configuration should be applied.
  • Enum Constant Details

    • BACKGROUND

      public static final UI.Layer BACKGROUND
      This layer is applied through the StylableComponent.paintBackground(Graphics, Consumer) method. When using custom components, please make sure your component implements this interface!
    • CONTENT

      public static final UI.Layer CONTENT
      This layer is rendered right after the background layer through the Border of a component. Every component supports this layer.
    • BORDER

      public static final UI.Layer BORDER
      This layer is rendered right after the content layer through the Border of a component. Every component supports this layer.
    • FOREGROUND

      public static final UI.Layer FOREGROUND
      The foreground is painted through the StylableComponent.paintForeground(Graphics, Consumer) method. When using custom components, please make sure your component implements this interface!
  • Method Details

    • values

      public static UI.Layer[] 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 UI.Layer 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