|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectleon.misc.LyColor
public final class LyColor
The LyColor
class is used encapsulate colors as RGB format.
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
static LyColor |
BLACK
The black color. |
static LyColor |
BLUE
The blue color. |
static LyColor |
CYAN
The cyan color. |
static LyColor |
DARK_GRAY
The dark gray color. |
static LyColor |
GRAY
The gray color. |
static LyColor |
GREEN
The green color. |
static LyColor |
LIGHT_GRAY
The light gray color. |
static LyColor |
MAGENTA
The magenta color. |
static LyColor |
NO_COLOR
No color. |
static LyColor |
ORANGE
The orange color. |
static LyColor |
PINK
The pink color. |
static LyColor |
RED
The red color. |
static LyColor |
SYSTEM
The system color. |
static LyColor |
WHITE
The white color. |
static LyColor |
YELLOW
The yellow color. |
Constructor Summary | |
---|---|
LyColor()
Creates a default system color. |
|
LyColor(int value)
Creates an opaque RGB color. |
|
LyColor(int r,
int g,
int b)
Creates an opaque RGB color with the specified red, green, and blue values in the range (0 - 255). |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
int |
getBlue()
Gets the blue component in the range 0-255. |
int |
getGreen()
Gets the green component in the range 0-255. |
int |
getRed()
Gets the red component in the range 0-255. |
int |
getRGB()
Gets the RGB value representing the color (Bits 16-23 are red, 8-15 are green, 0-7 are blue). |
int |
hashCode()
|
java.lang.String |
toString()
|
boolean |
useSystemColor()
This method is used by components that need to know if they should use the system color. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String __VERSION
public static final LyColor SYSTEM
public static final LyColor WHITE
public static final LyColor LIGHT_GRAY
public static final LyColor GRAY
public static final LyColor DARK_GRAY
public static final LyColor BLACK
public static final LyColor RED
public static final LyColor PINK
public static final LyColor ORANGE
public static final LyColor YELLOW
public static final LyColor GREEN
public static final LyColor MAGENTA
public static final LyColor CYAN
public static final LyColor BLUE
public static final LyColor NO_COLOR
Constructor Detail |
---|
public LyColor(int r, int g, int b)
r
- the red componentg
- the green componentb
- the blue componentgetRed()
,
getGreen()
,
getBlue()
public LyColor(int value)
_value
with the specified value and _systemColor
to false.
value
- the RGB valuegetRGB()
public LyColor()
_value
to 0 and _systemColor
to
true.
Method Detail |
---|
public int getRGB()
getRed()
,
getGreen()
,
getBlue()
public int getRed()
getRGB()
public int getGreen()
getRGB()
public int getBlue()
getRGB()
public boolean useSystemColor()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |