Package edu.wisc.game.rest
Class ColorMap
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,
Object>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,
V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetHex
(Piece.Color color, boolean brighten) boolean
hasColor
(Piece.Color color) Methods inherited from class java.util.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, values
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Constructor Details
-
ColorMap
public ColorMap()Reads in the color map file. // FIXME: Maybe it's not such a great idea that the server has just one // color map file, shared by all experiments.
-
-
Method Details
-
getHex
-
getHex
- Parameters:
name
- "RED"brighten
- If true, replace with a lighter color, so that it can be more suitable for use as a background.- Returns:
- "FF00000"
-
hasColor
-