edu.cmu.relativelayout
Enum Edge
java.lang.Object
java.lang.Enum<Edge>
edu.cmu.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 (phoenix1701@gmail.com)
|
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 are 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 Edge[] 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 (Edge c : Edge.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are 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
NullPointerException - if the argument is null