|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.compomics.util.Util
public class Util
Includes general help methods that are used by the other classes.
Constructor Summary | |
---|---|
Util()
|
Method Summary | |
---|---|
static String |
color2Hex(Color color)
Converts a color to hex format for use in HTML tags. |
static boolean |
deleteDir(File dir)
Deletes all files and subdirectories under dir. |
static double |
getPpmError(double theoreticalMzValue,
double massError)
Returns the ppm value of the given mass error relative to its theoretical m/z value. |
static double |
roundDouble(double d,
int places)
Rounds a double value to the wanted number of decimalplaces. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Util()
Method Detail |
---|
public static double roundDouble(double d, int places)
d
- the double to round ofplaces
- number of decimal places wanted
public static boolean deleteDir(File dir)
dir
-
public static double getPpmError(double theoreticalMzValue, double massError)
theoreticalMzValue
- the theoretical massmassError
- the mass error
public static String color2Hex(Color color)
color
- the color to convert
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |