|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjtge.util.grid.direction.Direction
Provides direction common behaviours.
| Field Summary | |
static Direction |
EAST
The east direction. |
static Direction |
NORTH
The north direction. |
static Direction |
NORTH_EAST
The north east direction. |
static Direction |
NORTH_WEST
The north west direction. |
static Direction |
SOUTH
The south direction. |
static Direction |
SOUTH_EAST
The south east direction. |
static Direction |
SOUTH_WEST
The south west direction. |
static Direction |
WEST
The west direction. |
| Constructor Summary | |
Direction(java.lang.String name,
java.lang.String shortName)
Create a direction. |
|
| Method Summary | |
boolean |
equals(java.lang.Object object)
|
java.lang.String |
getName()
Retrieve the direction name. |
java.lang.String |
getShortName()
Retrieve the direction short name. |
int |
hashCode()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface jtge.util.grid.direction.IDirection |
transform |
| Field Detail |
public static final Direction NORTH
public static final Direction NORTH_EAST
public static final Direction EAST
public static final Direction SOUTH_EAST
public static final Direction SOUTH
public static final Direction SOUTH_WEST
public static final Direction WEST
public static final Direction NORTH_WEST
| Constructor Detail |
public Direction(java.lang.String name,
java.lang.String shortName)
name - the nameshortName - the short name| Method Detail |
public final java.lang.String getName()
getName in interface IDirectionpublic final java.lang.String getShortName()
getShortName in interface IDirectionpublic final int hashCode()
public final boolean equals(java.lang.Object object)
public final java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||