net.infonode.util
public final class Direction extends Enum
Version: $Revision: 1.6 $
Field Summary | |
---|---|
static Direction[] | DIRECTIONS
Array containing all directions. |
static Direction | DOWN
Down direction. |
static Direction | LEFT
Left direction. |
static Direction | RIGHT
Right direction. |
static Direction | UP
Up direction. |
Method Summary | |
---|---|
static Direction | decode(ObjectInputStream in)
Decodes a direction from a stream.
|
static Direction[] | getDirections()
Gets all directions.
|
Direction | getNextCCW()
Returns the direction that is one quarter of a revolution counter clock wise.
|
Direction | getNextCW()
Returns the direction that is one quarter of a revolution clock wise.
|
Direction | getOpposite()
Returns the opposite direction.
|
boolean | isHorizontal()
Returns true if the direction is horizontal.
|
Parameters: in the stream containing the direction
Returns: the direction
Throws: IOException if there is a stream error
Returns: all directions
Since: 1.1.0
Returns: the direction that is one quarter of a revolution counter clock wise
Returns: the direction that is one quarter of a revolution clock wise
Returns: the opposite direction
Returns: true if the direction is horizontal