Class CSSColors
- java.lang.Object
-
- org.openstreetmap.josm.gui.mappaint.mapcss.CSSColors
-
public final class CSSColors extends java.lang.Object
List of named CSS colors as per CSS Color Module Level 3.- See Also:
- CSS Color Module Level 3
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Map<java.lang.String,java.awt.Color>
CSS_COLORS
-
Constructor Summary
Constructors Modifier Constructor Description private
CSSColors()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.awt.Color
get(java.lang.String key)
Returns the CSS color for the given key
-
-
-
Field Detail
-
CSS_COLORS
private static final java.util.Map<java.lang.String,java.awt.Color> CSS_COLORS
-
-
Constructor Detail
-
CSSColors
private CSSColors()
-
-
Method Detail
-
get
public static java.awt.Color get(java.lang.String key)
Returns the CSS color for the given key- Parameters:
key
- The key to find- Returns:
- The color for
key
-
-