public enum Location extends Enum<Location>
Enum Constant and Description |
---|
CENTER
Central location.
|
EAST
Eastern location.
|
NORTH
Northern location.
|
NORTH_EAST
North-eastern location.
|
NORTH_WEST
North-western location.
|
SOUTH
Southern location.
|
SOUTH_EAST
South-eastern location.
|
SOUTH_WEST
South-western location.
|
WEST
Western location.
|
Modifier and Type | Method and Description |
---|---|
double |
getAlignmentH()
Returns the horizontal alignment as a double value.
|
double |
getAlignmentV()
Returns the vertical alignment as a double value.
|
static Location |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Location[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Location CENTER
public static final Location NORTH
public static final Location NORTH_EAST
public static final Location EAST
public static final Location SOUTH_EAST
public static final Location SOUTH
public static final Location SOUTH_WEST
public static final Location WEST
public static final Location NORTH_WEST
public static Location[] values()
for (Location c : Location.values()) System.out.println(c);
public static Location 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 nullpublic double getAlignmentH()
public double getAlignmentV()
Copyright © 2009-2013. All Rights Reserved.