com.ontimize.gui
Class ColorConstants
java.lang.Object
com.ontimize.gui.ColorConstants
- public final class ColorConstants
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
veryLightGray
public static java.awt.Color veryLightGray
veryLightPink
public static java.awt.Color veryLightPink
veryLightBlue
public static java.awt.Color veryLightBlue
veryLightSkyblue
public static java.awt.Color veryLightSkyblue
veryLightGreen
public static java.awt.Color veryLightGreen
veryLightYellow
public static java.awt.Color veryLightYellow
veryLightYellow2
public static java.awt.Color veryLightYellow2
yellowCompFocus
public static java.awt.Color yellowCompFocus
veryLightRed
public static java.awt.Color veryLightRed
lightGreyishBlue
public static java.awt.Color lightGreyishBlue
lightGreyishBlue2
public static java.awt.Color lightGreyishBlue2
GRAY
public static final java.lang.String GRAY
- See Also:
- Constant Field Values
BLACK
public static final java.lang.String BLACK
- See Also:
- Constant Field Values
BLUE
public static final java.lang.String BLUE
- See Also:
- Constant Field Values
RED
public static final java.lang.String RED
- See Also:
- Constant Field Values
YELLOW
public static final java.lang.String YELLOW
- See Also:
- Constant Field Values
CYAN
public static final java.lang.String CYAN
- See Also:
- Constant Field Values
DARKGRAY
public static final java.lang.String DARKGRAY
- See Also:
- Constant Field Values
GREEN
public static final java.lang.String GREEN
- See Also:
- Constant Field Values
LIGHTGRAY
public static final java.lang.String LIGHTGRAY
- See Also:
- Constant Field Values
MAGENTA
public static final java.lang.String MAGENTA
- See Also:
- Constant Field Values
ORANGE
public static final java.lang.String ORANGE
- See Also:
- Constant Field Values
PINK
public static final java.lang.String PINK
- See Also:
- Constant Field Values
WHITE
public static final java.lang.String WHITE
- See Also:
- Constant Field Values
DARKBLUE
public static final java.lang.String DARKBLUE
- See Also:
- Constant Field Values
userColors
protected static java.util.Hashtable userColors
userPaints
protected static java.util.Hashtable userPaints
colorsCache
protected static java.util.Hashtable colorsCache
ColorConstants
public ColorConstants()
colorNameToColor
public static java.awt.Color colorNameToColor(java.lang.String name)
throws java.lang.Exception
- Throws:
java.lang.Exception
colorRGBToColor
public static java.awt.Color colorRGBToColor(java.lang.String rgb)
throws java.lang.Exception
- Parameters:
rgb - String with RGB values separated by ';' (For example 124;100;100)
- Returns:
-
- Throws:
java.lang.Exception
colorRGBHexToColor
public static java.awt.Color colorRGBHexToColor(java.lang.String rgb)
throws java.lang.Exception
- Throws:
java.lang.Exception
parseColor
public static java.awt.Color parseColor(java.lang.String color)
throws java.lang.Exception
- Throws:
java.lang.Exception
addUserColor
public static void addUserColor(java.lang.String colorName,
java.awt.Color c)
throws java.lang.Exception
- Throws:
java.lang.Exception
addUserColor
public static void addUserColor(java.lang.String colorName,
java.lang.String rgb)
throws java.lang.Exception
- Throws:
java.lang.Exception
addUserPaint
public static void addUserPaint(java.lang.String paintName,
java.awt.Paint c)
throws java.lang.Exception
- Throws:
java.lang.Exception
paintNameToPaint
public static java.awt.Paint paintNameToPaint(java.lang.String s)
throws java.lang.Exception
- Throws:
java.lang.Exception
colorToRGB
public static java.lang.String colorToRGB(java.awt.Color c)
colorToHEX
public static java.lang.String colorToHEX(java.awt.Color c)