public final class ColorConstants extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
BLACK |
static String |
BLUE |
protected static Hashtable |
colorsCache |
static String |
CYAN |
static String |
DARKBLUE |
static String |
DARKGRAY |
static String |
GRAY |
static String |
GREEN |
static String |
LIGHTGRAY |
static Color |
lightGreyishBlue |
static Color |
lightGreyishBlue2 |
static String |
MAGENTA |
static String |
ORANGE |
static String |
PINK |
static String |
RED |
protected static Hashtable |
userColors |
protected static Hashtable |
userPaints |
static Color |
veryLightBlue |
static Color |
veryLightGray |
static Color |
veryLightGreen |
static Color |
veryLightPink |
static Color |
veryLightRed |
static Color |
veryLightSkyblue |
static Color |
veryLightYellow |
static Color |
veryLightYellow2 |
static String |
WHITE |
static String |
YELLOW |
static Color |
yellowCompFocus |
| Constructor and Description |
|---|
ColorConstants() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addUserColor(String colorName,
Color c) |
static void |
addUserColor(String colorName,
String rgb) |
static void |
addUserPaint(String paintName,
Paint c) |
static Color |
colorNameToColor(String name) |
static Color |
colorRGBHexToColor(String rgb) |
static Color |
colorRGBToColor(String rgb) |
static String |
colorToHEX(Color c) |
static String |
colorToRGB(Color c) |
static Paint |
paintNameToPaint(String s) |
static Color |
parseColor(String color) |
public static Color veryLightGray
public static Color veryLightPink
public static Color veryLightBlue
public static Color veryLightSkyblue
public static Color veryLightGreen
public static Color veryLightYellow
public static Color veryLightYellow2
public static Color yellowCompFocus
public static Color veryLightRed
public static Color lightGreyishBlue
public static Color lightGreyishBlue2
public static final String GRAY
public static final String BLACK
public static final String BLUE
public static final String RED
public static final String YELLOW
public static final String CYAN
public static final String DARKGRAY
public static final String GREEN
public static final String LIGHTGRAY
public static final String MAGENTA
public static final String ORANGE
public static final String PINK
public static final String WHITE
public static final String DARKBLUE
protected static Hashtable userColors
protected static Hashtable userPaints
protected static Hashtable colorsCache
public static Color colorNameToColor(String name) throws Exception
Exceptionpublic static Color colorRGBToColor(String rgb) throws Exception
rgb - String with RGB values separated by ';' (For example
124;100;100)Exceptionpublic static Color colorRGBHexToColor(String rgb) throws Exception
Exceptionpublic static void addUserColor(String colorName, Color c) throws Exception
Exceptionpublic static void addUserColor(String colorName, String rgb) throws Exception
Exceptionpublic static void addUserPaint(String paintName, Paint c) throws Exception
ExceptionCopyright © 2016 Imatia Innovation S.L.. All rights reserved.