|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cc.framework.ui.Color
Enumeration of Color Codes used by the Painters
Field Summary | |
static Color |
BLACK
color : black |
static Color |
BLUE
color : blue |
private int |
bluePart
Blue |
private static java.lang.String[][] |
COLORNAMES
Table with HTML color codes |
static Color |
GREEN
color : green |
private int |
greenPart
Green |
static Color |
ORANGE
color : orange |
static Color |
RED
color : red |
private int |
redPart
Red |
private static long |
serialVersionUID
Serial Version UID |
static Color |
WHITE
color : white |
static Color |
YELLOW
color : yellow |
Constructor Summary | |
Color(int rgb)
Constructor for Color |
|
Color(int red,
int green,
int blue)
Constructor for Color |
|
Color(java.lang.String colorString)
Constructor for Color |
Method Summary | |
int |
blue()
|
private java.lang.String |
decToHex(int dec)
Converts an int to a hex value |
int |
green()
|
private static int |
hexToInt(char digit)
Converts a hex value to an int value |
private static int |
hexToInt(java.lang.String hexDigits)
Converts a hex value to an int value |
static java.lang.String |
mapColorName(java.lang.String name)
Returns the color for a color value |
static Color |
mapString(java.lang.String colorString)
Creates a color object for the specified argument |
int |
red()
|
java.awt.Color |
toAWT()
Generates a Color AWT-Objekt |
java.lang.String |
toDez()
Returns a String with the dezimal values for the color |
java.lang.String |
toHex()
Returns a String with the hex values for the color |
java.lang.String |
toHtml()
Generates a Color value in the form #AABBCC |
java.lang.String |
toHtmlName()
Returns the HTML Name for the color |
int |
toRGB()
Returns a rgb value for the color |
java.lang.String |
toString()
Returns a String representation for the color in the form #AABBCC |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final long serialVersionUID
public static final Color WHITE
public static final Color BLACK
public static final Color RED
public static final Color GREEN
public static final Color BLUE
public static final Color ORANGE
public static final Color YELLOW
private int redPart
private int greenPart
private int bluePart
private static final java.lang.String[][] COLORNAMES
Constructor Detail |
public Color(int red, int green, int blue)
red
- The value for redgreen
- The value for greenblue
- The value for bluepublic Color(int rgb)
rgb
- The value of the color including the red, green, blue partpublic Color(java.lang.String colorString)
colorString
- The string value of the colorMethod Detail |
private static int hexToInt(char digit)
digit
- Digit to convert
private static int hexToInt(java.lang.String hexDigits)
hexDigits
- Digit to convert
public static java.lang.String mapColorName(java.lang.String name)
name
- ColorCode
public static Color mapString(java.lang.String colorString)
colorString
- The color value
private java.lang.String decToHex(int dec)
dec
- The int value
public java.lang.String toHtmlName()
public java.lang.String toString()
public java.lang.String toHtml()
public java.lang.String toHex()
public java.lang.String toDez()
public int toRGB()
public java.awt.Color toAWT()
public int blue()
public int green()
public int red()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |