Package kiyut.citra.options
Class OptionsUtilities
- java.lang.Object
-
- kiyut.citra.options.OptionsUtilities
-
public class OptionsUtilities extends Object
Collections of Options Utilities- Author:
- Kiyut
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringcolorToString(Color color)Return string representative of the color in hex format eg:#53F27Cstatic ColorstringToColor(String value, Color def)Return Color from the supplied value string in hex format eg:#53F27C
-
-
-
Method Detail
-
colorToString
public static String colorToString(Color color)
Return string representative of the color in hex format eg:#53F27C- Parameters:
color-Colorto be converted- Returns:
- string representative of the color
- See Also:
stringToColor(String,Color)
-
stringToColor
public static Color stringToColor(String value, Color def)
Return Color from the supplied value string in hex format eg:#53F27C- Parameters:
value-Stringthat describe the Colordef- the value to be returned in the event that this parsing fail for whatever reason- Returns:
- Color
- See Also:
stringToColor(String,Color),colorToString(Color)
-
-