public static enum Field.Direction extends Enum<Field.Direction>
Enum Constant and Description |
---|
E
An arrow pointing towards East
|
N
An arrow pointing towards North
|
NE
An arrow pointing towards North-East
|
NW
An arrow pointing towards North-West
|
S
An arrow pointing towards South
|
SE
An arrow pointing towards South-East
|
SW
An arrow pointing towards South-West
|
W
An arrow pointing towards West
|
Modifier and Type | Method and Description |
---|---|
int |
getColumnOffset() |
int |
getRowOffset() |
static Field.Direction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Field.Direction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Field.Direction N
public static final Field.Direction NE
public static final Field.Direction E
public static final Field.Direction SE
public static final Field.Direction S
public static final Field.Direction SW
public static final Field.Direction W
public static final Field.Direction NW
public static Field.Direction[] values()
for (Field.Direction c : Field.Direction.values()) System.out.println(c);
public static Field.Direction 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 int getRowOffset()
public int getColumnOffset()