|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ge.research.html.HTMLColors
Color codes for the HTML 4.0 standard color set, and other pre-defined color values.
Colors are represented in hex notation. Also provides conversion methods to go between
Color objects and HTML hex color strings.
| Field Summary | |
static java.lang.String |
ACQUA
The HTML 4.0 standard color AQUA |
static java.lang.String |
BLACK
The HTML 4.0 standard color BLACK |
static java.lang.String |
BLUE
The HTML 4.0 standard color BLUE |
static java.lang.String |
DARK_GRAY
A color representing a darker shade of GRAY |
static java.lang.String |
FUSCIA
The HTML 4.0 standard color FUSCIA |
static java.lang.String |
GRAY
The HTML 4.0 standard color GRAY |
static java.lang.String |
GREEN
The HTML 4.0 standard color GREEN |
static java.lang.String |
LIGHT_GRAY
A color representing a lighter shade of GRAY |
static java.lang.String |
LIME
The HTML 4.0 standard color LIME |
static java.lang.String |
MAROON
The HTML 4.0 standard color MAROON |
static java.lang.String |
NAVY
The HTML 4.0 standard color NAVY |
static java.lang.String |
OLIVE
The HTML 4.0 standard color OLIVE |
static java.lang.String |
PURPLE
The HTML 4.0 standard color PURPLE |
static java.lang.String |
RED
The HTML 4.0 standard color RED |
static java.lang.String |
SILVER
The HTML 4.0 standard color SILVER |
static java.lang.String |
TEAL
The HTML 4.0 standard color TEAL |
static java.lang.String |
WHITE
The HTML 4.0 standard color WHITE |
static java.lang.String |
YELLOW
The HTML 4.0 standard color YELLOW |
| Constructor Summary | |
HTMLColors()
|
|
| Method Summary | |
static java.lang.String |
translateToHTMLColor(java.awt.Color javaColor)
Converts a Color object into the HTML hex string equivalent color. |
static java.awt.Color |
translateToJavaColor(java.lang.String hexColor)
Converts an HTML hex representation of a color into the Color equivalent. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String BLACK
public static final java.lang.String NAVY
public static final java.lang.String BLUE
public static final java.lang.String GREEN
public static final java.lang.String TEAL
public static final java.lang.String LIME
public static final java.lang.String ACQUA
public static final java.lang.String MAROON
public static final java.lang.String PURPLE
public static final java.lang.String OLIVE
public static final java.lang.String GRAY
public static final java.lang.String SILVER
public static final java.lang.String RED
public static final java.lang.String FUSCIA
public static final java.lang.String YELLOW
public static final java.lang.String WHITE
public static final java.lang.String LIGHT_GRAY
GRAY
public static final java.lang.String DARK_GRAY
GRAY
| Constructor Detail |
public HTMLColors()
| Method Detail |
public static final java.lang.String translateToHTMLColor(java.awt.Color javaColor)
Color object into the HTML hex string equivalent color.
javaColor - the color to produce the HTML hex representation of
javaColorpublic static final java.awt.Color translateToJavaColor(java.lang.String hexColor)
Color equivalent.
hexColor - the HTML hex representation of the color to produce
Color equivalent of the HTML hex representation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||