|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jcurzez.Color | +--jcurzez.BackgroundColor
A background color. There are several predefined background colors :
Field Summary | |
static BackgroundColor |
BLACK
The background color black. |
static BackgroundColor |
BLUE
The background color blue. |
static BackgroundColor |
CYAN
The background color cyan. |
static BackgroundColor |
GREEN
The background color green. |
static BackgroundColor |
MAGENTA
The background color magenta. |
protected java.lang.String |
name
Name of this color. |
static BackgroundColor |
RED
The background color red. |
static BackgroundColor |
WHITE
The background color white. |
static BackgroundColor |
YELLOW
The background color yellow. |
Constructor Summary | |
private |
BackgroundColor(java.lang.String name)
Creates a background 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 BackgroundColor BLACK
public static final BackgroundColor RED
public static final BackgroundColor GREEN
public static final BackgroundColor YELLOW
public static final BackgroundColor BLUE
public static final BackgroundColor MAGENTA
public static final BackgroundColor CYAN
public static final BackgroundColor WHITE
protected final java.lang.String name
Constructor Detail |
private BackgroundColor(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 |