jtge.util.grid.direction
Interface IDirection

All Known Implementing Classes:
Direction

public interface IDirection

Defines direction behaviour.

Version:
$Revision: 1.1 $ $Date: 2005/09/09 22:12:34 $
Author:
Mathieu Champlon

Method Summary
 java.lang.String getName()
          Retrieve the direction name.
 java.lang.String getShortName()
          Retrieve the direction short name.
 Coordinate transform(Coordinate coordinate, IDirectionGroup directionGroup)
          Follow the direction from a given coordinate.
 

Method Detail

transform

public 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

getName

public java.lang.String getName()
Retrieve the direction name.

Returns:
the name

getShortName

public java.lang.String getShortName()
Retrieve the direction short name.

Returns:
the short name


Copyright © 2003-2005 . All Rights Reserved.