Interface ncsa.horizon.coordinates.AxisPosFormatter
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface ncsa.horizon.coordinates.AxisPosFormatter

public interface AxisPosFormatter
extends Object
extends Cloneable
support for formatting a position along an axis in a coordinate system

Note that valueOf(String s) is not guaranteed to produce closure with valStr(). For example, valStr might convert a continuous value into the a timezone or the name of a color; in this case, valueOf() might have to return an "average" or canonical value associated the string.


Method Index

 o clone()
 o toString(double)
convert a value to a string
 o toString(double, int)
convert a value to a string with a given precision.
 o valueOf(String)
parse the string into a double value as best as possible.

Methods

 o toString
  public abstract String toString(double val)
convert a value to a string
 o toString
  public abstract String toString(double val,
                                  int precision)
convert a value to a string with a given precision. Implementations may interpret the precision in different ways
 o valueOf
  public abstract double valueOf(String s) throws NumberFormatException
parse the string into a double value as best as possible. Note that this method is not guaranteed to give closure with valStr().
 o clone
  public abstract Object clone()
Overrides:
clone in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index