Package org.aoju.bus.core.lang
Enum Class Scale.Gradient
- All Implemented Interfaces:
Serializable,Comparable<Scale.Gradient>,Constable
- Enclosing class:
Scale
渐变方向
-
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 Scale.GradientReturns the enum constant of this class with the specified name.static Scale.Gradient[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TOP_BOTTOM
上到下 -
LEFT_RIGHT
左到右 -
LEFT_TOP_TO_RIGHT_BOTTOM
左上到右下 -
RIGHT_TOP_TO_LEFT_BOTTOM
右上到左下
-
-
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
-