Class ncsa.horizon.coordinates.formatters.GenericAxisPosFormatter
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.

Variable Index

 o myname

Constructor Index

 o GenericAxisPosFormatter()

Method Index

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

Variables

 o myname
  protected final static String myname

Constructors

 o GenericAxisPosFormatter
  public GenericAxisPosFormatter()

Methods

 o toString
  public String toString(double val)
return a value as a string with a specified precision
Parameters:
val - the input value
 o 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
 o valueOf
  public double valueOf(String s) throws NumberFormatException
parse the String representation of a floating point number
 o clone
  public Object clone()
Overrides:
clone in class Object
 o main
  public static void main(String args[])
 o toString
  public String toString()
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index