Package overit.geocall.ux.util
Class ColorUtil
java.lang.Object
overit.geocall.ux.util.ColorUtil
Class to create a
Color from a string that rappresents the code of the color
in hexadecimal.-
Method Summary
-
Method Details
-
toColor
Method to return theColorfrom the string. The string must be write in hexadecimal encoding. It can be preceded by the'#'character, but it is not obligatory.
The code can be composed of six digits representing thergbcode, or of eight digits for theargbcode (where'a'meansalpha channelfor the opacity).
Each element of the code must be represented with two hexadecimal digits, so the possible value range from"00"to"FF"(from 0 to 255 in decimal).- Parameters:
s- String contains the color code. It may contain the code inrgbor inargbformat, and can be preceded by the'#'character.- Returns:
- The color coded by the parameter.
-