public class ColorMapper extends Object
Modifier and Type | Field and Description |
---|---|
static int |
BLACK |
static int |
BLUE |
static int |
BROWN |
static int |
BUTTONDARK |
static int |
BUTTONLIGHT |
static int |
BUTTONMIDDLE |
static int[] |
colorMap
This array contains the color defines as the integer values below indicates:
|
static Color[] |
colors
The color array.
|
static int |
CUSTOMDARK |
static int |
CUSTOMLIGHT |
static int |
CYAN |
static int |
DARKBLUE |
static int |
DARKCYAN |
static int |
DARKGRAY |
static int |
DARKGREEN |
static int |
DARKPINK |
static int |
DARKRED |
static int |
DIALOGBACKGROUND |
static int |
ENTRYFIELD |
static int |
GREEN |
static int |
HELPHILITE |
static int |
HELPTEXT |
static int |
HILITEBACKGROUND |
static int |
HILITEFOREGROUND |
static int |
ICONTEXT |
static int |
OUTPUTTEXT |
static int |
PALEGRAY |
static int |
PINK |
static int |
RED |
static int |
SHADOW |
static int |
WHITE |
static int |
WINDOWSTATICTEXT |
static int |
WINDOWTEXT |
static int |
YELLOW |
Constructor and Description |
---|
ColorMapper() |
Modifier and Type | Method and Description |
---|---|
static void |
clearCache()
Clears the cached color table, used when changing look-and-feel.
|
static Color |
createColor(int c) |
static Color[] |
getColors()
Gets the array of 32 colors used.
|
static void |
setColors(Color[] newColors)
Applies an array of 32 color to use from now one, e.g.
|
public static final int BLACK
public static final int BLUE
public static final int RED
public static final int PINK
public static final int GREEN
public static final int CYAN
public static final int YELLOW
public static final int DARKGRAY
public static final int DARKBLUE
public static final int DARKRED
public static final int DARKPINK
public static final int DARKGREEN
public static final int DARKCYAN
public static final int BROWN
public static final int PALEGRAY
public static final int WHITE
public static final int WINDOWSTATICTEXT
public static final int WINDOWTEXT
public static final int HELPTEXT
public static final int HELPHILITE
public static final int OUTPUTTEXT
public static final int BUTTONLIGHT
public static final int BUTTONMIDDLE
public static final int BUTTONDARK
public static final int HILITEFOREGROUND
public static final int HILITEBACKGROUND
public static final int ICONTEXT
public static final int SHADOW
public static final int DIALOGBACKGROUND
public static final int ENTRYFIELD
public static final int CUSTOMLIGHT
public static final int CUSTOMDARK
public static final int[] colorMap
Index RGB OS/2 or Windows name Phantom index ----- -------- ---------------------- ------------- 0 0x000000 CLR_BLACK 1 1 0x0000FF CLR_BLUE 2 2 0xFF0000 CLR_RED 3 3 0xFF00FF CLR_PINK 4 4 0x00FF00 CLR_GREEN 5 5 0x00FFFF CLR_CYAN 6 6 0xFFFF00 CLR_YELLOW 7 7 0x808080 CLR_DARKGRAY 8 8 0x000080 CLR_DARKBLUE 9 9 0x800000 CLR_DARKRED 10 10 0x800080 CLR_DARKPINK 11 11 0x008000 CLR_DARKGREEN 12 12 0x008080 CLR_DARKCYAN 13 13 0x808000 CLR_BROWN 14 14 0xC0C0C0 CLR_PALEGRAY 15 15 0xFFFFFF CLR_WHITE 16 16 0x000080 SYSCLR_WINDOWSTATICTEXT 17 17 0x000000 SYSCLR_WINDOWTEXT 18 18 0x000080 SYSCLR_HELPTEXT 19 19 0x800000 SYSCLR_HELPHILITE 20 20 0x000000 SYSCLR_OUTPUTTEXT 21 21 0xFFFFFF SYSCLR_BUTTONLIGHT 22 22 0xC0C0C0 SYSCLR_BUTTONMIDDLE 23 23 0x808080 SYSCLR_BUTTONDARK 24 24 0xFFFFFF SYSCLR_HILITEFOREGROUND 25 25 0x000080 SYSCLR_HILITEBACKGROUND 26 26 0xFFFFFF SYSCLR_ICONTEXT 27 27 0xC0C0C0 SYSCLR_SHADOW 28 28 0xC0C0C0 SYSCLR_DIALOGBACKGROUND 29 29 0xFFFFFF SYSCLR_ENTRYFIELD 30 30 0xE0E0E0 CUSTOMLIGHT 31 31 0x808080 CUSTOMDARK 32
public static final Color[] colors
public static Color createColor(int c)
public static void clearCache()
public static Color[] getColors()
public static void setColors(Color[] newColors)
colors
- The colors array to set, must be 32 lone.Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.