public enum GradientOrientation extends Enum<GradientOrientation> implements Key
Enum Constant and Description |
---|
BOTTOM_LEFT
From bottom(right) to left(top) (diagonal)
|
BOTTOM_RIGHT
From bottom(left) to right(top) (diagonal)
|
BOTTOM_UP
From bottom to to (vertical)
|
IN_OUT
From center to the borders (ONLY radial)
|
LEFT_RIGHT
From left to right (horizontal)
|
OUT_IN
From borders to the center (ONLY radial)
|
RIGHT_LEFT
From right to left (horizontal)
|
TOP_DOWN
From top to bottom (vertical)
|
TOP_LEFT
From top(right) to left(bottom) (diagonal)
|
TOP_RIGHT
From top(left) to right(bottom) (diagonal)
|
Modifier and Type | Method and Description |
---|---|
String |
getCssStatement()
Returns the CSS statement which represents the gradient orientation.
|
static GradientOrientation |
getDefaultByType(GradientType type)
Returns the default orientation based on gradient type.
|
GradientType |
getType()
Returns the supported gradient type.
|
String |
value()
Returns the name value of property
|
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.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
checkAndGetIfValid, checkIfValid, compare, create, equals, getKeyByValue, getKeyByValue, hasKeyByValue, isValid
public static final GradientOrientation TOP_DOWN
public static final GradientOrientation BOTTOM_UP
public static final GradientOrientation LEFT_RIGHT
public static final GradientOrientation RIGHT_LEFT
public static final GradientOrientation TOP_RIGHT
public static final GradientOrientation BOTTOM_LEFT
public static final GradientOrientation TOP_LEFT
public static final GradientOrientation BOTTOM_RIGHT
public static final GradientOrientation IN_OUT
public static final GradientOrientation OUT_IN
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 String value()
Key
public static final GradientOrientation getDefaultByType(GradientType type)
type
- gradient typepublic String getCssStatement()