| java.lang.Object org.uispec4j.utils.ColorUtils
ColorUtils | final public class ColorUtils (Code) | | Utility for checking colors given either hexa or "natural language" string descriptions.
For all assertEquals/equals methods, the "expected" parameter can be either:
- A
Color object specifying the exact color
- A
String object containing the hexadecimal description of the exact color
- A
String object containing the name of a color for an approximate comparison.
The authorized names are those of the predefined Color objects defined in the Java
Color class.
See Also: Using colors |
UNEXPECTED_COLOR_CLASS | final static String UNEXPECTED_COLOR_CLASS(Code) | | |
getColorDescription | public static String getColorDescription(Object color)(Code) | | Returns a normalized string description given a Color or another String description
|
getColorDescription | public static String getColorDescription(Color color)(Code) | | Returns a description string for a given Color object
|
getColorDescription | public static String getColorDescription(String color)(Code) | | Normalizes a given color description string
|
|
|