kiyut.citra 2.5

kiyut.citra.options
Class OptionsUtilities

java.lang.Object
  extended by kiyut.citra.options.OptionsUtilities

public class OptionsUtilities
extends Object

Collections of Options Utilities

Author:
Kiyut

Method Summary
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

colorToString

public static String colorToString(Color color)
Return string representative of the color in hex format eg:#53F27C

Parameters:
color - Color to 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 - String that describe the Color
def - the value to be returned in the event that this parsing fail for whatever reason
Returns:
Color
See Also:
stringToColor(String,Color), colorToString(Color)

kiyut.citra 2.5