Serializable
, Cloneable
, Map<String,int[]>
@Deprecated public class WebColors extends HashMap<String,int[]>
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
Modifier and Type | Field | Description |
---|---|---|
static WebColors |
NAMES |
Deprecated.
HashMap containing all the names and corresponding color values.
|
Constructor | Description |
---|---|
WebColors() |
Deprecated.
|
Modifier and Type | Method | Description |
---|---|---|
static BaseColor |
getRGBColor(String name) |
Deprecated.
Gives you a BaseColor based on a name.
|
equals, hashCode, toString
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
public static final WebColors NAMES
public static BaseColor getRGBColor(String name)
name
- a name such as black, violet, cornflowerblue or #RGB or
#RRGGBB or RGB or RRGGBB or rgb(R,G,B)IllegalArgumentException
- if the String isn't a know representation of a color.Copyright © 2018. All rights reserved.