net.sf.freecol.client.gui
Enum Canvas.PopupPosition
java.lang.Object
java.lang.Enum<Canvas.PopupPosition>
net.sf.freecol.client.gui.Canvas.PopupPosition
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<Canvas.PopupPosition>
- Enclosing class:
- Canvas
public static enum Canvas.PopupPosition
- extends java.lang.Enum<Canvas.PopupPosition>
|
Method Summary |
static Canvas.PopupPosition |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Canvas.PopupPosition[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
| Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
ORIGIN
public static final Canvas.PopupPosition ORIGIN
CENTERED
public static final Canvas.PopupPosition CENTERED
CENTERED_LEFT
public static final Canvas.PopupPosition CENTERED_LEFT
CENTERED_RIGHT
public static final Canvas.PopupPosition CENTERED_RIGHT
values
public static Canvas.PopupPosition[] 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 (Canvas.PopupPosition c : Canvas.PopupPosition.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Canvas.PopupPosition valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is null