|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sibvisions.rad.ui.awt.impl.AwtResource<Color>
com.sibvisions.rad.ui.awt.impl.AwtColor
public class AwtColor
The AwtColor class is used to encapsulate the access
to all usable colors for AWT components. It's also used to change
or define new colors.
| Field Summary |
|---|
| Fields inherited from class com.sibvisions.rad.ui.awt.impl.AwtResource |
|---|
resource |
| Constructor Summary | |
|---|---|
AwtColor(Color pColor)
Creates an instance of AwtColor based on
a java.awt.Color. |
|
AwtColor(int pRGBA)
Creates a sRGB color with the specified combined RGBA value consisting of the alpha component in bits 24-31, the red component in bits 16-23, the green component in bits 8-15, and the blue component in bits 0-7. |
|
| Method Summary | |
|---|---|
int |
getAlpha()
Returns the alpha component in the range 0-255. |
int |
getBlue()
Returns the blue component in the range 0-255 in the default sRGB space. |
int |
getGreen()
Returns the green component in the range 0-255 in the default sRGB space. |
int |
getRed()
Returns the red component in the range 0-255 in the default sRGB space. |
int |
getRGBA()
Returns the red, green, blue and alpha component as one integer. |
| Methods inherited from class com.sibvisions.rad.ui.awt.impl.AwtResource |
|---|
equals, getResource, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.rad.ui.IResource |
|---|
getResource |
| Constructor Detail |
|---|
public AwtColor(Color pColor)
AwtColor based on
a java.awt.Color.
pColor - java.awt.ColorColorpublic AwtColor(int pRGBA)
pRGBA - the combined RGBA componentsColor| Method Detail |
|---|
public int getAlpha()
getAlpha in interface IColorIColor.getRed(),
IColor.getGreen(),
IColor.getBlue()public int getBlue()
getBlue in interface IColorIColor.getRed(),
IColor.getGreen(),
IColor.getBlue()public int getGreen()
getGreen in interface IColorIColor.getRed(),
IColor.getGreen(),
IColor.getBlue()public int getRed()
getRed in interface IColorIColor.getRed(),
IColor.getGreen(),
IColor.getBlue()public int getRGBA()
getRGBA in interface IColorIColor.getRed(),
IColor.getGreen(),
IColor.getBlue()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||