/** * Shortcut for parseColor with no transparency. */ public static Color parseColor(String str) throws NumberFormatException { return parseColor(str, 1); };
/** * Shortcut for parseColor with no transparency. */ public static Color parseColor(String colorString) throws NumberFormatException { return mxHtmlColor.parseColor(colorString); }
/** * Convert a string representing a 24/32bit hex color value into a Color * object. The following color names are also supported: white, black, red, * green, blue, orange, yellow, pink, turquoise, gray and none (null). * Examples of possible hex color values are: #C3D9FF, #6482B9 and #774400, * but note that you do not include the "#" in the string passed in * * @param colorString * the 24/32bit hex string value (ARGB) * @return java.awt.Color (24bit RGB on JDK 1.1, 24/32bit ARGB on JDK1.2) * @exception NumberFormatException * if the specified string cannot be interpreted as a * hexidecimal integer */ public static Color parseColor(String colorString) throws NumberFormatException { return mxHtmlColor.parseColor(colorString); }
/** * Convert a string representing a 24/32bit hex color value into a Color * object. The following color names are also supported: white, black, red, * green, blue, orange, yellow, pink, turquoise, gray and none (null). * Examples of possible hex color values are: #C3D9FF, #6482B9 and #774400, * but note that you do not include the "#" in the string passed in * * @param colorString * the 24/32bit hex string value (ARGB) * @return java.awt.Color (24bit RGB on JDK 1.1, 24/32bit ARGB on JDK1.2) * @exception NumberFormatException * if the specified string cannot be interpreted as a * hexidecimal integer */ public static Color parseColor(String colorString, double alpha) throws NumberFormatException { return mxHtmlColor.parseColor(colorString, alpha); };