Enum Class GradientStyle
- All Implemented Interfaces:
Serializable,Comparable<GradientStyle>,Constable
Specifies the style for a gradient fill.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSpecifies a diagonal gradient moving from a top corner down to the opposite corner.Specifies a diagonal gradient moving from a bottom corner up to the opposite corner.Specifies a gradient running from the center out to the corners.Specifies a gradient running from a corner to the other three corners.Specifies a gradient running from the title outward.Specifies a gradient running horizontally across the shape.Gradient is mixed.Specifies a gradient running vertically down the shape. -
Method Summary
Modifier and TypeMethodDescriptionstatic GradientStyleReturns the enum constant of this class with the specified name.static GradientStyle[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Horizontal
Specifies a gradient running horizontally across the shape. -
Vertical
Specifies a gradient running vertically down the shape. -
DiagonalUp
Specifies a diagonal gradient moving from a bottom corner up to the opposite corner. -
DiagonalDown
Specifies a diagonal gradient moving from a top corner down to the opposite corner. -
FromCorner
Specifies a gradient running from a corner to the other three corners. -
FromTitle
Specifies a gradient running from the title outward. -
FromCenter
Specifies a gradient running from the center out to the corners. -
Mixed
Gradient is mixed.
-
-
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
-