| Overview | Package | Class | Tree | Deprecated | Index | Help | |||
| PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||
java.lang.Object | +--ncsa.horizon.coordinates.formatters.GenericAxisPosFormatter
| Inner Class Summary | |
| static | GenericAxisPosFormatter.Modes
the formatting modes |
| Field Summary | |
| ScientificFormat | fmt
the format object used to do the actual formatting |
| static java.lang.String | myname
|
| Constructor Summary | |
| GenericAxisPosFormatter()
|
|
| Method Summary | |
| java.lang.Object | clone()
|
| java.text.Format | getFormat()
return the format object used to format this object. |
| int | getPrecision()
return the number of significant digits that will be displayed to the right of the decimal place. |
| static void | main(java.lang.String[] args)
|
| void | setMode(int mode)
set the mode of the format |
| void | setPrecision(int precision)
set the number of significant digits to the right of the decimal place. |
| java.lang.String | toString(double val)
return a value as a string with a specified precision |
| java.lang.String | toString(double val,
int prec)
return a value as a string with a specified precision |
| java.lang.String | toString()
|
| double | valueOf(java.lang.String s)
parse the String representation of a floating point number. |
| Methods inherited from class java.lang.Object | |
| clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait | |
| Field Detail |
protected ScientificFormat fmt
protected static final java.lang.String myname
| Constructor Detail |
public GenericAxisPosFormatter()
| Method Detail |
public java.lang.String toString(double val)
val
- the input value
public java.lang.String toString(double val,
int prec)
val
- the input value
prec
- the number of places right of the decimal point
public double valueOf(java.lang.String s)
throws java.lang.NumberFormatException
public void setPrecision(int precision)
public int getPrecision()
public void setMode(int mode)
public java.text.Format getFormat()
public java.lang.Object clone()
public static void main(java.lang.String[] args)
public java.lang.String toString()
| Overview | Package | Class | Tree | Deprecated | Index | Help | |||
| PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||