public enum GradientOrientation extends Enum<GradientOrientation> implements Key
Enum Constant and Description |
---|
bottomLeft
From bottom(right) to left(top) (diagonal)
|
bottomRight
From bottom(left) to right(top) (diagonal)
|
bottomUp
From bottom to to (vertical)
|
inOut
From center to the borders (ONLY radial)
|
leftRight
From left to right (horizontal)
|
outIn
From borders to the center (ONLY radial)
|
rightLeft
From right to left (horizontal)
|
topDown
From top to bottom (vertical)
|
topLeft
From top(right) to left(bottom) (diagonal)
|
topRight
From top(left) to right(bottom) (diagonal)
|
Modifier and Type | Method and Description |
---|---|
static GradientOrientation |
getDefaultByType(GradientType type)
Returns the default orientation based on gradient type.
|
GradientType |
getType()
Returns the supported gradient type.
|
static GradientOrientation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GradientOrientation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GradientOrientation topDown
public static final GradientOrientation bottomUp
public static final GradientOrientation leftRight
public static final GradientOrientation rightLeft
public static final GradientOrientation topRight
public static final GradientOrientation bottomLeft
public static final GradientOrientation topLeft
public static final GradientOrientation bottomRight
public static final GradientOrientation inOut
public static final GradientOrientation outIn
public static GradientOrientation[] values()
for (GradientOrientation c : GradientOrientation.values()) System.out.println(c);
public static GradientOrientation valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic GradientType getType()
public static final GradientOrientation getDefaultByType(GradientType type)
type
- gradient type