    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.

##

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

##

toString

      public abstract String toString(double val)

  convert a value to a string

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

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().

clone

      public abstract Object clone()

Overrides:
  clone in class Object

    All Packages  Class Hierarchy  This Package  Previous  Next  Index