Package com.batch.android.messaging.view
Enum PositionableGradientDrawable.Orientation
- java.lang.Object
-
- java.lang.Enum<PositionableGradientDrawable.Orientation>
-
- com.batch.android.messaging.view.PositionableGradientDrawable.Orientation
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<PositionableGradientDrawable.Orientation>
- Enclosing class:
- PositionableGradientDrawable
public static enum PositionableGradientDrawable.Orientation extends java.lang.Enum<PositionableGradientDrawable.Orientation>
Controls how the gradient is oriented relative to the drawable's bounds
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BL_TRdraw the gradient from the bottom-left to the top-rightBOTTOM_TOPdraw the gradient from the bottom to the topBR_TLdraw the gradient from the bottom-right to the top-leftLEFT_RIGHTdraw the gradient from the left to the rightRIGHT_LEFTdraw the gradient from the right to the leftTL_BRdraw the gradient from the top-left to the bottom-rightTOP_BOTTOMdraw the gradient from the top to the bottomTR_BLdraw the gradient from the top-right to the bottom-left
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PositionableGradientDrawable.OrientationvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static PositionableGradientDrawable.Orientation[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TOP_BOTTOM
public static final PositionableGradientDrawable.Orientation TOP_BOTTOM
draw the gradient from the top to the bottom
-
TR_BL
public static final PositionableGradientDrawable.Orientation TR_BL
draw the gradient from the top-right to the bottom-left
-
RIGHT_LEFT
public static final PositionableGradientDrawable.Orientation RIGHT_LEFT
draw the gradient from the right to the left
-
BR_TL
public static final PositionableGradientDrawable.Orientation BR_TL
draw the gradient from the bottom-right to the top-left
-
BOTTOM_TOP
public static final PositionableGradientDrawable.Orientation BOTTOM_TOP
draw the gradient from the bottom to the top
-
BL_TR
public static final PositionableGradientDrawable.Orientation BL_TR
draw the gradient from the bottom-left to the top-right
-
LEFT_RIGHT
public static final PositionableGradientDrawable.Orientation LEFT_RIGHT
draw the gradient from the left to the right
-
TL_BR
public static final PositionableGradientDrawable.Orientation TL_BR
draw the gradient from the top-left to the bottom-right
-
-
Method Detail
-
values
public static PositionableGradientDrawable.Orientation[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PositionableGradientDrawable.Orientation c : PositionableGradientDrawable.Orientation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PositionableGradientDrawable.Orientation valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-