Package generic.theme
Class GThemeDefaults.Colors.Palette
java.lang.Object
generic.theme.GThemeDefaults.Colors.Palette
- Enclosing class:
GThemeDefaults.Colors
Generic palette colors, using color names, that may be changed along with the theme.
These are not all defined palette colors, but some of the more commonly used colors.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final GColorstatic final GColorstatic final GColorstatic final GColorstatic final GColorstatic final GColorstatic final GColorstatic final GColorstatic final GColorstatic final GColorstatic final GColorstatic final GColorstatic final ColorTransparent colorstatic final GColorstatic final GColorstatic final GColorstatic final GColorstatic final GColorstatic final GColorstatic final GColorstatic final GColor -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
NO_COLOR
Transparent color -
BLACK
-
BLUE
-
CYAN
-
DARK_GRAY
-
GOLD
-
GRAY
-
GREEN
-
LAVENDER
-
LIGHT_GRAY
-
LIME
-
MAGENTA
-
MAROON
-
ORANGE
-
PINK
-
PURPLE
-
RED
-
SILVER
-
TEAL
-
WHITE
-
YELLOW
-
-
Constructor Details
-
Palette
public Palette()
-
-
Method Details
-
getColor
Returns a newGColorfor the given palette name.For a list of supported palette IDs, see
gui.palette.theme.properties.It is preferred to use the static colors defined in
GThemeDefaults.Colors.Palettewhen possible, as it prevents excess object creation. This method should be used when the desired palette color is not in that list. Further, this method should only be called once per use, such as when initializing a constant value.- Parameters:
name- the palette entry name- Returns:
- the GColor
-