public class OColor
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static OColor |
BLACK |
static OColor |
BLUE |
static OColor |
CYAN |
static OColor |
DARKGRAY |
static OColor |
GREEN |
static OColor |
LIGHTGRAY |
static OColor |
MAGENTA |
static OColor |
PALEYELLOW |
static OColor |
RED |
static OColor |
WHITE |
static OColor |
YELLOW |
| Constructor and Description |
|---|
OColor(java.lang.String name,
int value)
Constructs a color.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
name()
Returns the color's name.
|
java.lang.String |
toString()
Returns a string representation of the color.
|
int |
value()
Returns the color's RGB value.
|
public static final OColor RED
public static final OColor GREEN
public static final OColor BLUE
public static final OColor BLACK
public static final OColor WHITE
public static final OColor YELLOW
public static final OColor CYAN
public static final OColor MAGENTA
public static final OColor DARKGRAY
public static final OColor LIGHTGRAY
public static final OColor PALEYELLOW
public OColor(java.lang.String name,
int value)
name - the namevalue - the RGB value, e.g., 0x00ffff for cyanpublic java.lang.String name()
public int value()
public java.lang.String toString()
toString in class java.lang.Object