Enum Class PresetGradientType
- All Implemented Interfaces:
Serializable,Comparable<PresetGradientType>,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指定黄铜渐变。指定平静水梯度。指定Chrome渐变。指定 Chrome II 渐变。指定晨曦渐变。指定沙漠渐变。指定早期日落的渐变。指定火焰渐变。指定雾渐变。指定金色渐变。指定 Gold II 渐变。指定水平渐变。指定晚霞渐变。指定红木渐变。指定Moss渐变。指定 Nightfall 渐变。指定海洋渐变。指定Parchment渐变。指定孔雀渐变。指定彩虹渐变。指定彩虹II渐变。指定Sapphire渐变。指定银色渐变。指定小麦渐变。 -
Method Summary
Modifier and TypeMethodDescriptionstatic PresetGradientTypeReturns the enum constant of this class with the specified name.static PresetGradientType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EarlySunset
指定早期日落的渐变。 -
LateSunset
指定晚霞渐变。 -
Nightfall
指定 Nightfall 渐变。 -
Daybreak
指定晨曦渐变。 -
Horizon
指定水平渐变。 -
Desert
指定沙漠渐变。 -
Ocean
指定海洋渐变。 -
CalmWater
指定平静水梯度。 -
Fire
指定火焰渐变。 -
Fog
指定雾渐变。 -
Moss
指定Moss渐变。 -
Peacock
指定孔雀渐变。 -
Wheat
指定小麦渐变。 -
Parchment
指定Parchment渐变。 -
Mahogany
指定红木渐变。 -
Rainbow
指定彩虹渐变。 -
RainbowII
指定彩虹II渐变。 -
Gold
指定金色渐变。 -
GoldII
指定 Gold II 渐变。 -
Brass
指定黄铜渐变。 -
Chrome
指定Chrome渐变。 -
ChromeII
指定 Chrome II 渐变。 -
Silver
指定银色渐变。 -
Sapphire
指定Sapphire渐变。
-
-
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
-