|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sibvisions.rad.ui.qt.impl.QtResource<QColor>
com.sibvisions.rad.ui.qt.impl.QtColor
public class QtColor
The QtColor class is used to encapsulate the access
to all usable colors for QT widgets. It's also used to change
or define new colors.
| Field Summary |
|---|
| Fields inherited from class com.sibvisions.rad.ui.qt.impl.QtResource |
|---|
resource |
| Constructor Summary | |
|---|---|
QtColor(int pRGBA)
Constructs a color for a specific color value. |
|
QtColor(QColor pColor)
Constructs a color that is a copy of another color. |
|
| 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.qt.impl.QtResource |
|---|
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 QtColor(QColor pColor)
pColor - the color to copyQtColor(QColor)public QtColor(int pRGBA)
pRGBA - the RGB valueQColor.QColor(int)| 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 | |||||||||