Class OptionsUtilities


  • public class OptionsUtilities
    extends Object
    Collections of Options Utilities
    Author:
    Kiyut
    • 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)