    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class ncsa.horizon.coordinates.formatters.GenericAxisPosFormatter

    java.lang.Object
       |
       +----ncsa.horizon.coordinates.formatters.GenericAxisPosFormatter

public class GenericAxisPosFormatter
extends Object
implements AxisPosFormatter, Cloneable

support for printing out double values as floating point numbers.

##

myname

##

GenericAxisPosFormatter()

##

clone()
main(String[])
toString()
toString(double)
  return a value as a string with a specified precision
toString(double, int)
  return a value as a string with a specified precision
valueOf(String)
  parse the String representation of a floating point number

##

myname

      protected final static String myname

##

GenericAxisPosFormatter

      public GenericAxisPosFormatter()

##

toString

      public String toString(double val)

  return a value as a string with a specified precision
  Parameters:
    val - the input value

toString

      public String toString(double val,
                             int prec)

  return a value as a string with a specified precision
  Parameters:
    val - the input value
    prec - the number of places right of the decimal point

valueOf

      public double valueOf(String s) throws NumberFormatException

  parse the String representation of a floating point number

clone

      public Object clone()

Overrides:
  clone in class Object

main

      public static void main(String args[])

toString

      public String toString()

Overrides:
  toString in class Object

    All Packages  Class Hierarchy  This Package  Previous  Next  Index