|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectatt.grappa.GrappaColor
public abstract class GrappaColor
This abstract class sets up and provides name-to-color and color-to-name mappings and some associated class methods.
| Field Summary | |
|---|---|
static java.awt.Color |
defaultBackground
The default background color (white). |
static java.awt.Color |
defaultColor
The default color of last resort in all cases (black). |
static java.awt.Color |
defaultFontcolor
The default font color (black). |
static java.awt.Color |
defaultForeground
The default foreground color (black). |
static java.awt.Color |
defaultXOR
The default XOR color (light gray). |
| Constructor Summary | |
|---|---|
GrappaColor()
|
|
| Method Summary | |
|---|---|
static void |
addColor(java.lang.String name,
java.awt.Color color)
Adds a color to the application color table. |
static java.awt.Color |
getColor(java.lang.String name,
java.awt.Color color)
Return the color in the color table with the given name. |
static java.lang.String |
getColorName(java.awt.Color color)
Return the name of the supplied color. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.awt.Color defaultForeground
public static final java.awt.Color defaultBackground
public static final java.awt.Color defaultXOR
public static final java.awt.Color defaultFontcolor
public static final java.awt.Color defaultColor
| Constructor Detail |
|---|
public GrappaColor()
| Method Detail |
|---|
public static void addColor(java.lang.String name,
java.awt.Color color)
throws java.lang.IllegalArgumentException
name - the name to be used to reference the color.color - the Color value.
java.lang.IllegalArgumentException
public static java.awt.Color getColor(java.lang.String name,
java.awt.Color color)
name - the name of the color to be retrieved.color - the color value to return if requested color
is not found.
public static java.lang.String getColorName(java.awt.Color color)
color - the color whose name is to be retrieved.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||