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