public class AppUtils extends Object
| Constructor and Description |
|---|
AppUtils() |
| Modifier and Type | Method and Description |
|---|---|
static JSVPanel |
checkIntegral(JSVPanel jsvp,
Container frameOrPanel,
Parameters parameters,
String value) |
static String |
colorToHexString(Color color)
Returns a hex string representation of a
Color object |
static Color |
getColorFromString(String strColor)
Returns a
Color from a string representation as a hex value or
a delimiter separated rgb values. |
static JSVPanel |
integrate(Container frameOrPanel,
boolean showDialog,
Parameters parameters)
Integrates an HNMR spectrum
|
static JSVPanel |
removeIntegration(Container frameOrPanel) |
static void |
setBoolean(JSVPanel jsvp,
Parameters params,
jspecview.common.ScriptToken st,
boolean b)
setting of boolean parameters for a panel is only through Parameters
|
static void |
setMenus(JMenu saveAsMenu,
JMenu saveAsJDXMenu,
JMenu exportAsMenu,
ActionListener actionListener) |
public static JSVPanel integrate(Container frameOrPanel, boolean showDialog, Parameters parameters)
frameOrPanel - the selected frameshowDialog - if true then dialog is shown, otherwise spectrum is integrated with
default valuesintegrationRatios - public static String colorToHexString(Color color)
Color objectcolor - the ColorColor objectpublic static JSVPanel checkIntegral(JSVPanel jsvp, Container frameOrPanel, Parameters parameters, String value)
public static Color getColorFromString(String strColor)
Color from a string representation as a hex value or
a delimiter separated rgb values. The following are all valid arguments:
"#ffffff" "#FFFFFF" "255 255 255" "255,255,255" "255;255;255" "255-255-255" "255.255.255"
string - the color as a stringColor from a string representationpublic static void setMenus(JMenu saveAsMenu, JMenu saveAsJDXMenu, JMenu exportAsMenu, ActionListener actionListener)
public static void setBoolean(JSVPanel jsvp, Parameters params, jspecview.common.ScriptToken st, boolean b)
jsvp - params - st - b -