com.androidplot.ui
Enum AnchorPosition

java.lang.Object
  extended by java.lang.Enum<AnchorPosition>
      extended by com.androidplot.ui.AnchorPosition
All Implemented Interfaces:
Serializable, Comparable<AnchorPosition>

public enum AnchorPosition
extends Enum<AnchorPosition>

Enumeration of possible anchor positions that a Widget can use. There are a total 8 possible anchor positions representing each corner of the Widget and the point exactly between each corner.


Enum Constant Summary
BOTTOM_MIDDLE
           
CENTER
           
LEFT_BOTTOM
           
LEFT_MIDDLE
           
LEFT_TOP
           
RIGHT_BOTTOM
           
RIGHT_MIDDLE
           
RIGHT_TOP
           
TOP_MIDDLE
           
 
Method Summary
static AnchorPosition valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AnchorPosition[] values()
          Returns an array containing the constants of this enum type, in the order they are 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

TOP_MIDDLE

public static final AnchorPosition TOP_MIDDLE

LEFT_TOP

public static final AnchorPosition LEFT_TOP

LEFT_MIDDLE

public static final AnchorPosition LEFT_MIDDLE

LEFT_BOTTOM

public static final AnchorPosition LEFT_BOTTOM

RIGHT_TOP

public static final AnchorPosition RIGHT_TOP

RIGHT_MIDDLE

public static final AnchorPosition RIGHT_MIDDLE

RIGHT_BOTTOM

public static final AnchorPosition RIGHT_BOTTOM

BOTTOM_MIDDLE

public static final AnchorPosition BOTTOM_MIDDLE

CENTER

public static final AnchorPosition CENTER
Method Detail

values

public static AnchorPosition[] 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 (AnchorPosition c : AnchorPosition.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static AnchorPosition 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


Copyright © 2010-2013 androidplot.com. All Rights Reserved.