2.17.2: 2011-06-17

net.sf.basedb.util
Class Coordinate

java.lang.Object
  extended by net.sf.basedb.util.Coordinate

public class Coordinate
extends Object

Util class for coordinate transformations in base.

Version:
2.0
Author:
Enell
Last modified
$Date$

Constructor Summary
Coordinate()
           
 
Method Summary
static int alphaToNumeric(String s)
          Convert an alphanumeric coordinate to a numeric coordinate, case is unimportent.
static String numericToAlpha(int i)
          Convert a numeric coordinate to an alphanumeric coordinate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Coordinate

public Coordinate()
Method Detail

alphaToNumeric

public static int alphaToNumeric(String s)
Convert an alphanumeric coordinate to a numeric coordinate, case is unimportent.
Alphanumeric coordinateNumeric coordinate
a1
......
z26
aa27
......
az52
ba53
......
zz702
aaa703

Parameters:
s - The string representation of the alphanumeric coordinate.
Returns:
The int representation of the numeric coordinate.

numericToAlpha

public static String numericToAlpha(int i)
Convert a numeric coordinate to an alphanumeric coordinate. See alphaToNumeric(String) for details.

Parameters:
i - The int representation of the numeric coordinate.
Returns:
The string representation of the alphanumeric coordinate.

2.17.2: 2011-06-17