public class Utils extends Object
Modifier and Type | Field and Description |
---|---|
static ColorTable8 |
LIFETIME_LUT
The LUT for colorizing image (same as the one in TRI2)
|
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
matchesNumber(String str)
Determines if the string matches the number format.
|
static double |
parseDec(String str)
Parses the decimal string.
|
static String |
percentFmt(Number val)
Formats the value with the default scientific format.
|
static String |
prettyFmt(Number val)
Nicely format the input value to integer/float with at most 5 decimal places or scientific
notion with at most 5 decimal places if the number exeeds 10000
|
public static final ColorTable8 LIFETIME_LUT
public static boolean matchesNumber(String str)
str
- the input stringtrue
if the string matches the number formatpublic static String prettyFmt(Number val)
val
- the value to formatpublic static String percentFmt(Number val)
val
- the value to formatpublic static double parseDec(String str)
str
- the string to parseCopyright © 2015–2022 FLIMLib. All rights reserved.