| |
|
| java.lang.Object net.infonode.util.Enum net.infonode.util.Direction
Direction | final public class Direction extends Enum (Code) | | An enum class for directions, up, down, left, right.
author: $Author: jesper $ version: $Revision: 1.6 $ |
DIRECTIONS | final public static Direction[] DIRECTIONS(Code) | | Array containing all directions.
|
getDirections | public static Direction[] getDirections()(Code) | | Gets all directions.
all directions since: 1.1.0 |
getNextCCW | public Direction getNextCCW()(Code) | | Returns the direction that is one quarter of a revolution counter clock wise.
the direction that is one quarter of a revolution counter clock wise |
getNextCW | public Direction getNextCW()(Code) | | Returns the direction that is one quarter of a revolution clock wise.
the direction that is one quarter of a revolution clock wise |
getOpposite | public Direction getOpposite()(Code) | | Returns the opposite direction.
the opposite direction |
isHorizontal | public boolean isHorizontal()(Code) | | Returns true if the direction is horizontal.
true if the direction is horizontal |
|
|
|