Enum Class GradientStyle
- All Implemented Interfaces:
Serializable,Comparable<GradientStyle>,Constable
指定渐变填充的样式。
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription指定一个从顶部角落向下到对角角落的斜向渐变。指定一个对角线渐变,从底部角落向上延伸到对面的角落。指定从中心向外角渐变的颜色。指定一个从一角到另外三个角的渐变。指定从标题向外运行的渐变。指定一个水平穿过形状的渐变。梯度是混合的。指定一个沿形状垂直向下运行的渐变。 -
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
指定一个水平穿过形状的渐变。 -
Vertical
指定一个沿形状垂直向下运行的渐变。 -
DiagonalUp
指定一个对角线渐变,从底部角落向上延伸到对面的角落。 -
DiagonalDown
指定一个从顶部角落向下到对角角落的斜向渐变。 -
FromCorner
指定一个从一角到另外三个角的渐变。 -
FromTitle
指定从标题向外运行的渐变。 -
FromCenter
指定从中心向外角渐变的颜色。 -
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
-