|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectij.util.Tools
public class Tools
This class contains static utility methods.
Field Summary | |
---|---|
static char[] |
hexDigits
This array contains the 16 hex digits '0'-'F'. |
Constructor Summary | |
---|---|
Tools()
|
Method Summary | |
---|---|
static java.lang.String |
c2hex(java.awt.Color c)
Converts a Color to an 7 byte hex string starting with '#'. |
static java.lang.String |
f2hex(float f)
Converts a float to an 9 byte hex string starting with '#'. |
static java.lang.String |
fixNewLines(java.lang.String s)
Converts carriage returns to line feeds. |
static double[] |
getMinMax(double[] a)
|
static double[] |
getMinMax(float[] a)
|
static double |
parseDouble(java.lang.String s)
Returns a new double initialized to the value represented by the specified String . |
static double[] |
toDouble(float[] a)
Converts the float array 'a' to a double array. |
static float[] |
toFloat(double[] a)
Converts the double array 'a' to a float array. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final char[] hexDigits
Constructor Detail |
---|
public Tools()
Method Detail |
---|
public static java.lang.String c2hex(java.awt.Color c)
public static java.lang.String f2hex(float f)
public static double[] getMinMax(double[] a)
public static double[] getMinMax(float[] a)
public static double[] toDouble(float[] a)
public static float[] toFloat(double[] a)
public static java.lang.String fixNewLines(java.lang.String s)
public static double parseDouble(java.lang.String s) throws java.lang.NumberFormatException
String
.
s
- the string to be parsed.
java.lang.NumberFormatException
- if the string does not contain a
parsable double.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |