|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jcurzez.Color | +--jcurzez.ForegroundColor
A foreground color. There are several predefined foreground colors :
Field Summary | |
static ForegroundColor |
BLACK
The foreground color black. |
static ForegroundColor |
BLUE
The foreground color blue. |
static ForegroundColor |
CYAN
The foreground color cyan. |
static ForegroundColor |
GREEN
The foreground color green. |
static ForegroundColor |
MAGENTA
The foreground color magenta. |
protected java.lang.String |
name
Name of this color. |
static ForegroundColor |
RED
The foreground color red. |
static ForegroundColor |
WHITE
The foreground color white. |
static ForegroundColor |
YELLOW
The foreground color yellow. |
Constructor Summary | |
private |
ForegroundColor(java.lang.String name)
Creates a foreground color with specified name. |
Method Summary | |
boolean |
equals(java.lang.Object o)
Tests equality. |
java.lang.Object |
getRealColor()
Returns the real color. |
void |
setRealColor(java.lang.Object o)
Modifies the real color. |
java.lang.String |
toString()
Returns the name of this color. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final ForegroundColor BLACK
public static final ForegroundColor RED
public static final ForegroundColor GREEN
public static final ForegroundColor YELLOW
public static final ForegroundColor BLUE
public static final ForegroundColor MAGENTA
public static final ForegroundColor CYAN
public static final ForegroundColor WHITE
protected final java.lang.String name
Constructor Detail |
private ForegroundColor(java.lang.String name)
name
- the color name.Method Detail |
public java.lang.String toString()
toString
in class java.lang.Object
Color.name
.public void setRealColor(java.lang.Object o)
o
- the object to store as a real color.IllegalColorStateException
- if this method is invoked
more than once.java.lang.IllegalArgumentException
- if o
is
null.
public java.lang.Object getRealColor()
Color.realColor
.public final boolean equals(java.lang.Object o)
equals
in class java.lang.Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |