private static class ColorSpec.ChUIColorConvertor extends java.lang.Object implements ColorSpec.ColorConvertor
Modifier | Constructor and Description |
---|---|
private |
ChUIColorConvertor() |
Modifier and Type | Method and Description |
---|---|
Color |
convert(ColorSpec cs)
Convert color specification into real color.
|
private int |
getStandardColors(java.lang.String colorName)
Check if color is missing or is a standard color NORMAL, INPUT or MESSAGES
If yes return the standard color otherwise -1.
|
private Color |
makeColor(int attribute,
int fg,
int bg)
Build a Color object.
|
private Color |
processLinuxColor(ColorSpec cs)
Process Unix/Linux colors.
|
private Color |
processWindowsColor(ColorSpec cs)
Process Windows colors.
|
public Color convert(ColorSpec cs)
convert
in interface ColorSpec.ColorConvertor
private Color processLinuxColor(ColorSpec cs)
private Color processWindowsColor(ColorSpec cs)
private Color makeColor(int attribute, int fg, int bg)
attribute
- Color attributes.fg
- Foreground color index.bg
- Background color index.private int getStandardColors(java.lang.String colorName)
colorName
- color name.