Package swingtree

Enum Class UI.Cycle

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

@Immutable public static enum UI.Cycle extends Enum<UI.Cycle> implements UIEnum<UI.Cycle>
Used to specify the cycle method for a gradient conf in the style API. See UIForAnySwing.withStyle(Styler) and ComponentStyleDelegate.gradient(Configurator).
The following list describes what each enum instance represents:
  • NONE - The gradient is only rendered once, without repeating. The last color is used to fill the remaining area.
  • REFLECT - The gradient is rendered once and then reflected., which means that the gradient is rendered again in reverse order starting from the last color and ending with the first color. After that, the gradient is rendered again in the original order, starting from the first color and ending with the last color and so on.
  • REPEAT - The gradient is rendered repeatedly, which means that it is rendered again and again in the original order, starting from the first color and ending with the last color.
  • Enum Constant Details

    • NONE

      public static final UI.Cycle NONE
    • REFLECT

      public static final UI.Cycle REFLECT
    • REPEAT

      public static final UI.Cycle REPEAT
  • Method Details

    • values

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