jtge.util.grid.direction
Class NorthEast

java.lang.Object
  extended byjtge.util.grid.direction.Direction
      extended byjtge.util.grid.direction.NorthEast
All Implemented Interfaces:
IDirection

public class NorthEast
extends Direction

Implements the north east direction.

Version:
$Revision: 1.4 $ $Date: 2005/09/09 22:36:05 $
Author:
Mathieu Champlon

Field Summary
 
Fields inherited from class jtge.util.grid.direction.Direction
EAST, NORTH, NORTH_EAST, NORTH_WEST, SOUTH, SOUTH_EAST, SOUTH_WEST, WEST
 
Constructor Summary
NorthEast()
          Create a north direction.
 
Method Summary
 Coordinate transform(Coordinate coordinate)
          Transforms a coordinate according to the general contract of the direction.
 Coordinate transform(Coordinate coordinate, IDirectionGroup directionGroup)
          Follow the direction from a given coordinate.
 
Methods inherited from class jtge.util.grid.direction.Direction
equals, getName, getShortName, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NorthEast

public NorthEast()
Create a north direction.

Method Detail

transform

public final Coordinate transform(Coordinate coordinate,
                                  IDirectionGroup directionGroup)
Follow the direction from a given coordinate.

Parameters:
coordinate - the origin
directionGroup - the direction group strategy
Returns:
the coordinate in the direction

transform

public final Coordinate transform(Coordinate coordinate)
Transforms a coordinate according to the general contract of the direction.

Parameters:
coordinate - the coordinate to transform
Returns:
a new coordinate


Copyright © 2003-2005 . All Rights Reserved.