Class WebColors
- All Implemented Interfaces:
Serializable, Cloneable, Map<String,int[]>
Deprecated.
since 5.5.2
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 )
- Author:
- blowagie
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BaseColorgetRGBColor(String name) Deprecated.Gives you a BaseColor based on a name.Methods inherited from class HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, newHashMap, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from class AbstractMap
equals, hashCode, toString
-
Field Details
-
NAMES
Deprecated.HashMap containing all the names and corresponding color values.
-
-
Constructor Details
-
WebColors
public WebColors()Deprecated.
-
-
Method Details
-
getRGBColor
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:
IllegalArgumentException- if the String isn't a know representation of a color.
-