public abstract class NamedColorSet extends Object
Modifier and Type | Field and Description |
---|---|
static NamedColorSet |
CSS
Standard CSS/SVG/HTML/JS list of colours (140 entries).
|
static NamedColorSet |
CSS_DARK
CSS with all the very light colours (except White) removed.
|
Constructor and Description |
---|
NamedColorSet(Map<String,Color> map)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Color |
getColor(String name)
Returns the colour for a given name.
|
Map<String,Color> |
getMap()
Returns the colour map on which this named set is based.
|
abstract String |
toKey(String name)
Normalises a colour name to turn it into a map key.
|
public static final NamedColorSet CSS
public static final NamedColorSet CSS_DARK
public Map<String,Color> getMap()
public Color getColor(String name)
toKey(java.lang.String)
method before matching.name
- approximate nameCopyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.