public class OptionsUtilities extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
colorToString(Color color)
Return string representative of the color in hex format eg:#53F27C
|
static Color |
stringToColor(String value,
Color def)
Return Color from the supplied value string in hex format eg:#53F27C
|
public static String colorToString(Color color)
color - Color to be convertedstringToColor(String,Color)public static Color stringToColor(String value, Color def)
value - String that describe the Colordef - the value to be returned in the event that this parsing fail for whatever reasonstringToColor(String,Color),
colorToString(Color)