jtge.util.grid.direction
Class West

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

public class West
extends Direction

Implements the west direction.

Version:
$Revision: 1.3 $ $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
West()
          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

West

public West()
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.