|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractMap<K,V>
java.util.HashMap<java.lang.String,int[]>
com.itextpdf.text.html.WebColors
public class WebColors
This class is a HashMap that contains the names of colors as a key and the corresponding BaseColor as value. (Source: Wikipedia http://en.wikipedia.org/wiki/Web_colors )
| Field Summary | |
|---|---|
static WebColors |
NAMES
HashMap containing all the names and corresponding color values. |
| Constructor Summary | |
|---|---|
WebColors()
|
|
| Method Summary | |
|---|---|
static BaseColor |
getRGBColor(java.lang.String name)
Gives you a BaseColor based on a name. |
| Methods inherited from class java.util.HashMap |
|---|
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
| Methods inherited from class java.util.AbstractMap |
|---|
equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
equals, hashCode |
| Field Detail |
|---|
public static final WebColors NAMES
| Constructor Detail |
|---|
public WebColors()
| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||