public final class ColorUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static Color |
convertToAWTColor(String colorValue)
Converts a string representation of color to AWT Color object.
|
static int |
convertToInteger(String colorValue)
Converts a string representation of color to integer.
|
public static int convertToInteger(String colorValue)
Converts a string representation of color to integer.
Works with two formats:
#09FE4A - hexadecimalrgb(132, 5, 18) - decimalcolorValue - string represented in one of two formatspublic static Color convertToAWTColor(String colorValue)
Converts a string representation of color to AWT Color object.
Works with two formats:
#09FE4A - hexadecimalrgb(132, 5, 18) - decimalcolorValue - string represented in one of two formatsCopyright © 2012 JBoss by Red Hat. All Rights Reserved.