public static enum SquareImageView.Edge extends java.lang.Enum<SquareImageView.Edge>
SquareImageView.| Enum Constant and Description |
|---|
HORIZONTAL
The horizontal edge (on the x-axis).
|
VERTICAL
The vertical edge (on the y-axis).
|
| Modifier and Type | Method and Description |
|---|---|
static SquareImageView.Edge |
fromValue(int value)
Returns the edge, which corresponds to a specific value.
|
int |
getValue()
Returns the value of the edge.
|
static SquareImageView.Edge |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SquareImageView.Edge[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SquareImageView.Edge HORIZONTAL
public static final SquareImageView.Edge VERTICAL
public static SquareImageView.Edge[] values()
for (SquareImageView.Edge c : SquareImageView.Edge.values()) System.out.println(c);
public static SquareImageView.Edge valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic final int getValue()
Integer valuepublic static SquareImageView.Edge fromValue(int value)
IllegalArgumentException will be thrown.value - The value of the edge, which should be returned, as an Integer valueSquareImageView.Edge