relativelayout
Enum Edge

java.lang.Object
  extended by java.lang.Enum<Edge>
      extended by 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)

Enum Constant Summary
BOTTOM
           
HORIZONTAL_CENTER
           
LEFT
           
RIGHT
           
TOP
           
VERTICAL_CENTER
           
 
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.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
Method Detail

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