|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.swri.swiftvis.plot.NumberFormatter
public class NumberFormatter
This class is used to do formatting on numbers to make them look good.
Constructor Summary | |
---|---|
NumberFormatter()
|
Method Summary | |
---|---|
static double |
cleanBounds(double[] minMax)
Sets the values to something that contains the bounds passed in, but which uses numbers rounded for better display. |
static double |
cleanBounds(double[] minMax,
int sigFigs)
Sets the values to something that contains the bounds passed in, but which uses numbers rounded for better display. |
static void |
cleanBoundsOld(double[] minMax)
Sets the values to something that contains the bounds passed in, but which uses numbers rounded for better display. |
static java.lang.String |
format(double num,
double spacing,
double max)
|
static java.lang.String |
format(double num,
int sigFigs)
|
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NumberFormatter()
Method Detail |
---|
public static void main(java.lang.String[] args)
public static void cleanBoundsOld(double[] minMax)
public static double cleanBounds(double[] minMax)
public static double cleanBounds(double[] minMax, int sigFigs)
public static java.lang.String format(double num, int sigFigs)
public static java.lang.String format(double num, double spacing, double max)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |