Class NamedColorSet
java.lang.Object
uk.ac.starlink.ttools.plot2.config.NamedColorSet
Defines a set of colours with associated names.
This is quite like a map, but the colours can be retrieved with
variant keys (modified spellings, case folding etc).
A couple of useful instances are supplied.
- Since:
- 23 Feb 2017
- Author:
- Mark Taylor
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final NamedColorSetStandard CSS/SVG/HTML/JS list of colours (140 entries).static final NamedColorSetCSS with all the very light colours (except White) removed. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
CSS
Standard CSS/SVG/HTML/JS list of colours (140 entries).- See Also:
-
CSS_DARK
CSS with all the very light colours (except White) removed.
-
-
Constructor Details
-
NamedColorSet
-
-
Method Details
-
getMap
-
getColor
Returns the colour for a given name. This name is normalised using thetoKey(String)method before matching.- Parameters:
name- approximate name- Returns:
- colour, or null
-
toKey
-