public enum HorizontalPosition extends Enum<HorizontalPosition> implements NamedEnum
Modifier and Type | Method and Description |
---|---|
String |
getName() |
static HorizontalPosition |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HorizontalPosition[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HorizontalPosition LEFT
public static final HorizontalPosition RIGHT
public static final HorizontalPosition CENTER
public static HorizontalPosition[] values()
for (HorizontalPosition c : HorizontalPosition.values()) System.out.println(c);
public static HorizontalPosition valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2017. All rights reserved.