public final class Colors
extends java.lang.Object
BitmapFontCache class uses this class to retrieve colors and the user can define his own colors.| Modifier and Type | Method and Description |
|---|---|
static Color |
get(java.lang.String name)
Convenience method to lookup a color by
name. |
static ObjectMap<java.lang.String,Color> |
getColors()
Returns the color map.
|
static Color |
put(java.lang.String name,
Color color)
Convenience method to add a
color with its name. |
static void |
reset()
Resets the color map to the predefined colors.
|
public static Color get(java.lang.String name)
name. The invocation of this method is equivalent to the expression
Colors.getColors().get(name)name - the name of the colorname is mapped, or null if there was no mapping for name
.public static Color put(java.lang.String name, Color color)
color with its name. The invocation of this method is equivalent to the
expression Colors.getColors().put(name, color)name - the name of the colorcolor - the colorcolor associated with name, or null if there was no mapping for name
.public static void reset()