private static class ColorSpec.GUIColorConvertor extends java.lang.Object implements ColorSpec.ColorConvertor
Modifier | Constructor and Description |
---|---|
private |
GUIColorConvertor() |
Modifier and Type | Method and Description |
---|---|
Color |
convert(ColorSpec cs)
Convert color specification into real color.
|
private static int |
getStandardColors(java.lang.String colorName,
boolean bgColor)
Check if color is missing or is a standard color NORMAL, INPUT or MESSAGES.
|
private static int |
makeColor(int attribute,
int index)
Build a Color object.
|
private static int getStandardColors(java.lang.String colorName, boolean bgColor)
colorName
- color name.bgColor
- Flag indicating to return either the background or foreground color.private static int makeColor(int attribute, int index)
attribute
- Color attributes.index
- The color index.public Color convert(ColorSpec cs)
convert
in interface ColorSpec.ColorConvertor