public class WebColors
extends java.util.HashMap<java.lang.String,int[]>
| Modifier and Type | Field and Description |
|---|---|
static WebColors |
NAMES
HashMap containing all the names and corresponding color values.
|
| Constructor and Description |
|---|
WebColors() |
| Modifier and Type | Method and Description |
|---|---|
static BaseColor |
getRGBColor(java.lang.String name)
Gives you a BaseColor based on a name.
|
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, valuespublic static final WebColors NAMES
public static BaseColor getRGBColor(java.lang.String name) throws java.lang.IllegalArgumentException
name - a name such as black, violet, cornflowerblue or #RGB or #RRGGBB
or RGB or RRGGBB or rgb(R,G,B)java.lang.IllegalArgumentException - if the String isn't a know representation of a color.Copyright © 2013. All Rights Reserved.