public class SettingsUtil
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String[] |
COLOUR_CHOICE
The Constant COLOUR_CHOICE.
|
| Constructor and Description |
|---|
SettingsUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
copyFile(java.io.File sourceFile,
java.io.File destFile)
Copy file.
|
static javax.swing.JButton |
generateHelpButton(javax.swing.JFrame frame,
java.lang.String message)
Generate help button.
|
static javax.swing.JButton |
generateResetButton()
Generate reset button.
|
static com.jme3.math.ColorRGBA |
getColorRGBA(java.lang.String colour)
Gets the color rgba.
|
static float |
getFloatFromTextField(javax.swing.JTextField tf,
float previousValue)
Gets the float from text field.
|
static FontColour |
getFontColour(java.lang.String colour)
Gets the font colour.
|
static int |
getIntegerFromTextField(javax.swing.JTextField tf,
int previousValue)
Gets the integer from text field.
|
static java.lang.String |
removeSpecialChars(java.lang.String name)
Removes the special chars.
|
static java.lang.String[] |
stringArrayListToStringArray(java.util.ArrayList<java.lang.String> arrayList)
String array list to string array.
|
public static final java.lang.String[] COLOUR_CHOICE
public static void copyFile(java.io.File sourceFile,
java.io.File destFile)
throws java.io.IOException
sourceFile - the source filedestFile - the dest filejava.io.IOException - Signals that an I/O exception has occurred.public static javax.swing.JButton generateHelpButton(javax.swing.JFrame frame,
java.lang.String message)
frame - the framemessage - the messagepublic static javax.swing.JButton generateResetButton()
public static com.jme3.math.ColorRGBA getColorRGBA(java.lang.String colour)
colour - the colourpublic static float getFloatFromTextField(javax.swing.JTextField tf,
float previousValue)
tf - the tfpreviousValue - the previous valuepublic static FontColour getFontColour(java.lang.String colour)
colour - the colourpublic static int getIntegerFromTextField(javax.swing.JTextField tf,
int previousValue)
tf - the tfpreviousValue - the previous valuepublic static java.lang.String removeSpecialChars(java.lang.String name)
name - the namepublic static java.lang.String[] stringArrayListToStringArray(java.util.ArrayList<java.lang.String> arrayList)
arrayList - the array list