Package swingtree
Enum Class UI.Cycle
- All Implemented Interfaces:
Serializable
,Comparable<UI.Cycle>
,Constable
,UIEnum<UI.Cycle>
- Enclosing class:
- UI
Used to specify the cycle method for a gradient conf in the style API.
See
The following list describes what each enum instance represents:
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
-
Enum Constant Details
-
NONE
-
REFLECT
-
REPEAT
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-