private static class ColorSpec.GUIWorkArea extends ColorSpec.WorkArea
Modifier and Type | Field and Description |
---|---|
private static java.lang.String[][] |
COLOR_MAP
A map of color with all their abbreviations, to their color index in the color table
provided by the legacy 4GL documentation.
|
private java.lang.String |
colorsPattern
WINDOWS colors abbreviations
|
private int |
index
Color table index used on WINDOWS only
|
private static ColorTable.ColorPair |
INPUT
The standard INPUT GUI color pair.
|
private static ColorTable.ColorPair |
MESSAGES
The standard MESSAGES GUI color pair.
|
private static ColorTable.ColorPair |
NORMAL
The standard NORMAL GUI color pair.
|
private java.lang.String |
pattern
BLINK- RVV- UNDERLINE- BRIGHT- fgnd-color
|
private java.util.Map<java.lang.Object,Color> |
windowsColorMap
Color mapping table for Windows colors
|
private java.util.Map<java.lang.String,java.lang.Integer> |
windowsColors
Map of WINDOWS color names and indexes.
|
colorConvertor
Constructor and Description |
---|
GUIWorkArea()
Default c'tor which initializes a GUI-specific workarea.
|
Modifier and Type | Method and Description |
---|---|
private void |
initWindowsColors()
Initialize Windows color names and indexes.
|
private static final ColorTable.ColorPair NORMAL
private static final ColorTable.ColorPair INPUT
private static final ColorTable.ColorPair MESSAGES
private static final java.lang.String[][] COLOR_MAP
If the second value is null
, then it means that color is not a valid
abbreviation.
private java.util.Map<java.lang.Object,Color> windowsColorMap
private java.util.Map<java.lang.String,java.lang.Integer> windowsColors
private java.lang.String colorsPattern
private java.lang.String pattern
private int index