relativelayout
Enum Edge
java.lang.Object
java.lang.Enum<Edge>
relativelayout.Edge
- All Implemented Interfaces:
- Serializable, Comparable<Edge>
public enum Edge
- extends Enum<Edge>
Represents the edge of a component: left, top, right, or bottom, or horizontal or vertical
center.
- Author:
- Brian Ellis (firebird@andrew.cmu.edu)
Method Summary |
static Edge |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Edge[] |
values()
Returns an array containing the constants of this enum type, in
the order they're declared. |
LEFT
public static final Edge LEFT
TOP
public static final Edge TOP
RIGHT
public static final Edge RIGHT
BOTTOM
public static final Edge BOTTOM
HORIZONTAL_CENTER
public static final Edge HORIZONTAL_CENTER
VERTICAL_CENTER
public static final Edge VERTICAL_CENTER
values
public static final Edge[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(Edge c : Edge.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static Edge valueOf(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:
IllegalArgumentException
- if this enum type has no constant
with the specified name