|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.openuat.util.RgbColor
public class RgbColor
This class represents an opaque RGB color encoded as an int
value of the form 0xRRGGBB. Additionally it provides
some predefined color values.
It's intended to be used mainly within J2ME since J2SE (AWT) brings its own
Color class.
| Field Summary | |
|---|---|
static int |
BLACK
The color black ( 0x000000). |
static int |
BLUE
The color blue ( 0x0000ff). |
static int |
CYAN
The color cyan ( 0x00ffff). |
static int |
DARK_BLUE
The color dark blue ( 0x0000a0). |
static int |
DARK_GRAY
The color dark gray ( 0x404040). |
static int |
DARK_GREEN
The color dark green ( 0x008000). |
static int |
DARK_RED
The color dark red ( 0x800000). |
static int |
GRAY
The color gray ( 0x808080). |
static int |
GREEN
The color green ( 0x00ff00). |
static int |
LIGHT_GRAY
The color light gray ( 0xc0c0c0). |
static int |
LIGHT_RED
The color light red ( 0xff3333). |
static int |
MAGENTA
The color magenta ( 0xff00ff). |
static int |
RED
The color red ( 0xff0000). |
static int |
WHITE
The color white ( 0xffffff). |
static int |
YELLOW
The color yellow ( 0xffff00). |
| Constructor Summary | |
|---|---|
RgbColor()
Creates a new color. |
|
RgbColor(int rgbValue)
Creates a new color from a given RGB representation. |
|
| Method Summary | |
|---|---|
int |
getRgbValue()
Gets the RGB representation of the color. |
void |
setRgbValue(int rgbValue)
Sets the RGB representation of the color. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int BLACK
0x000000).
public static final int WHITE
0xffffff).
public static final int RED
0xff0000).
public static final int GREEN
0x00ff00).
public static final int BLUE
0x0000ff).
public static final int YELLOW
0xffff00).
public static final int CYAN
0x00ffff).
public static final int MAGENTA
0xff00ff).
public static final int GRAY
0x808080).
public static final int DARK_GRAY
0x404040).
public static final int LIGHT_GRAY
0xc0c0c0).
public static final int DARK_RED
0x800000).
public static final int LIGHT_RED
0xff3333).
public static final int DARK_GREEN
0x008000).
public static final int DARK_BLUE
0x0000a0).
| Constructor Detail |
|---|
public RgbColor()
public RgbColor(int rgbValue)
rgbValue - The RGB representation of the new color.| Method Detail |
|---|
public int getRgbValue()
public void setRgbValue(int rgbValue)
rgbValue - The RGB representation of the color.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||