com.lowagie.text.html
public class WebColors extends HashMap
Field Summary | |
---|---|
static WebColors | NAMES HashMap containing all the names and corresponding color values. |
static long | serialVersionUID |
Method Summary | |
---|---|
static Color | getRGBColor(String name)
Gives you a Color based on a name.
|
Parameters: name a name such as black, violet, cornflowerblue
Returns: the corresponding Color object
Throws: IllegalArgumentException if the String isn't a know representation of a color.