Package com.itextpdf.text.html
Class WebColors
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<java.lang.String,int[]>
-
- com.itextpdf.text.html.WebColors
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.util.Map<java.lang.String,int[]>
@Deprecated public class WebColors extends java.util.HashMap<java.lang.String,int[]>
Deprecated.since 5.5.2This 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 )- Author:
- blowagie
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WebColors()
Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static BaseColor
getRGBColor(java.lang.String name)
Deprecated.Gives you a BaseColor based on a name.-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
-
-
-
Field Detail
-
NAMES
public static final WebColors NAMES
Deprecated.HashMap containing all the names and corresponding color values.
-
-
Method Detail
-
getRGBColor
public static BaseColor getRGBColor(java.lang.String name)
Deprecated.Gives you a BaseColor based on a name.- Parameters:
name
- a name such as black, violet, cornflowerblue or #RGB or #RRGGBB or RGB or RRGGBB or rgb(R,G,B)- Returns:
- the corresponding BaseColor object. Never returns null.
- Throws:
java.lang.IllegalArgumentException
- if the String isn't a know representation of a color.
-
-