Enum Class GradientStyle
Enum Constant Summary
Enum Constants
Specifies 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.
Specifies a gradient running vertically down the shape.
Method Summary
All Methods Static Methods Concrete Methods
Returns the enum constant of this class with the specified name.
Returns an array containing the constants of this enum class, in
the order they are declared.
Methods inherited from class java.lang.Enum
clone , compareTo , describeConstable , equals , finalize , getDeclaringClass , hashCode , name , ordinal , toString , valueOf
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.
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 name
NullPointerException
- if the argument is null