|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdarwin.domain.Direction
This class represents compass directions. It is an enumeration of North, South, East and West.
Field Summary | |
static Direction |
EAST
Direction east. |
static Direction |
NORTH
Direction north. |
static Direction |
SOUTH
Direction south. |
static Direction |
WEST
Direction west. |
Method Summary | |
boolean |
equals(java.lang.Object aObject)
Override-prevention method. |
java.awt.Point |
getAdjacentPosition(java.awt.Point aPoint)
Determine the position that is in this direction of a position. |
int |
hashCode()
Override-prevention method. |
Direction |
leftFrom()
Determine the Direction that is 90 degrees left from this Direction. |
Direction |
rightFrom()
Determine the Direction that is 90 degrees right from this Direction. |
java.lang.String |
toString()
Return a String representation of this direction. |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final Direction EAST
public static final Direction NORTH
public static final Direction SOUTH
public static final Direction WEST
Method Detail |
public final boolean equals(java.lang.Object aObject)
public java.awt.Point getAdjacentPosition(java.awt.Point aPoint)
aPoint
- a position.
public final int hashCode()
public Direction leftFrom()
public Direction rightFrom()
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |