Enum Class LinearGradient.GradientDirection
java.lang.Object
java.lang.Enum<LinearGradient.GradientDirection>
com.github.tadukoo.view.paint.gradient.LinearGradient.GradientDirection
- All Implemented Interfaces:
Serializable
,Comparable<LinearGradient.GradientDirection>
,Constable
- Enclosing class:
- LinearGradient
The direction for a
LinearGradient
to go. This is used to determine the start and end points of a
Linear Gradient
.- Since:
- Alpha v.0.2
- Version:
- Alpha v.0.2.1
- Author:
- Logan Ferree (Tadukoo)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionUsed for a Gradient going top-right to bottom-leftUsed for a Gradient going top-left to bottom-rightUsed for a Gradient going left to rightUsed for a Gradient going top to bottom -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static LinearGradient.GradientDirection[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
HORIZONTAL
Used for a Gradient going left to right -
VERTICAL
Used for a Gradient going top to bottom -
DIAGONAL_DOWN_RIGHT
Used for a Gradient going top-left to bottom-right -
DIAGONAL_DOWN_LEFT
Used for a Gradient going top-right to bottom-left
-
-
Constructor Details
-
GradientDirection
private GradientDirection()
-
-
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
-