|
|
||||||||
| 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
com.lowagie.text.html.WebColors
public class WebColors
This class is a HashMap that contains the names of colors as a key and the corresponding Color as value. (Source: Wikipedia http://en.wikipedia.org/wiki/Web_colors )
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.util.AbstractMap |
|---|
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
| Field Summary | |
|---|---|
static WebColors |
NAMES
HashMap containing all the names and corresponding color values. |
private static long |
serialVersionUID
|
| Constructor Summary | |
|---|---|
WebColors()
|
|
| Method Summary | |
|---|---|
static java.awt.Color |
getRGBColor(java.lang.String name)
Gives you a Color 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 |
|---|
private static final long serialVersionUID
public static final WebColors NAMES
| Constructor Detail |
|---|
public WebColors()
| Method Detail |
|---|
public static java.awt.Color getRGBColor(java.lang.String name)
throws java.lang.IllegalArgumentException
name - a name such as black, violet, cornflowerblue or #RGB or #RRGGBB
or rgb(R,G,B)
java.lang.IllegalArgumentException - if the String isn't a know representation of a color.
|
Hosted by Hostbasket | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||