Class Coordinate

java.lang.Object
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 Details

    • Coordinate

      public Coordinate()
  • Method Details

    • alphaToNumeric

      public static int alphaToNumeric(String s)
      Convert an alphanumeric coordinate to a numeric coordinate, case is unimportent.
      Coordinate conversion examaples
      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.