public class Utils extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Utils.CheckBoxWithText
------------------------------------------------------------------- A
checkbox with a line of text added to it as a label
--------------------------------------------------------------------
|
static class |
Utils.LabeledComboBox |
static class |
Utils.LabeledTextField |
Modifier and Type | Field and Description |
---|---|
static String |
fs |
static String |
lf |
static NumberFormat |
numberFormat |
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
static void |
bummer(Frame parent,
String s)
Bummer message.
|
static JCheckBox |
createCheckBox(String s,
boolean b) |
static String |
formatNum(double num,
int numfracdigits) |
static String |
FormLin(double f)
Format numbers for Lin format
|
static String |
FormLin(float f)
Format numbers for Log format
|
static String |
FormLog(double f)
Format numbers for Log format
|
static String |
FormLog(float f)
Format numbers for Log format
|
static String |
FormNum(double x,
double xmin,
double xmax)
Format numbers.
|
static String[] |
FormPow(String num,
boolean isLog)
Format numbers as 10^##
|
static JColorChooser |
getColorChooser()
Returns a color chooser on request.
|
static Font |
getDefaultFont()
Returns a new instance of a default font.
|
static int |
getNumDigits(double num)
Return the number of digits required to display the given number.
|
static boolean |
isUnix()
Says whether we're running on a UNIX platform or not.
|
static JLabel |
makeLabel(String txt)
Make a label specifically used by the tic-panel.
|
static int |
numFracDigits(double num) |
static void |
oops(Frame parent,
String s)
Oops message.
|
static String |
RemoveZero(String s)
Format string by removin ".0"
|
static double |
roundUp(double val) |
static double |
RoundUp(double val)
Round up the passed value to a NICE value.
|
static String[] |
skeepZero(String[] len)
remove .0 stuff and remove 10^{1}
|
public static final String lf
public static final String fs
public static NumberFormat numberFormat
public static JColorChooser getColorChooser()
public static boolean isUnix()
public static int getNumDigits(double num)
public static double roundUp(double val)
public static int numFracDigits(double num)
public static String formatNum(double num, int numfracdigits)
public static String[] FormPow(String num, boolean isLog)
public static String FormLin(double f)
public static String RemoveZero(String s)
public static String FormLin(float f)
public static String FormNum(double x, double xmin, double xmax)
public static String FormLog(float f)
public static String FormLog(double f)
public static void oops(Frame parent, String s)
s
- the messagepublic static void bummer(Frame parent, String s)
s
- the messagepublic static Font getDefaultFont()
public static JLabel makeLabel(String txt)
public static double RoundUp(double val)
Jas4pp 1.5 © Java Analysis Studio for Particle Physics