com.androidplot.ui
Enum AnchorPosition
java.lang.Object
java.lang.Enum<AnchorPosition>
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.
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. |
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
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.