|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sibvisions.rad.ui.web.impl.WebResource
com.sibvisions.rad.ui.web.impl.WebColor
public class WebColor
Web server implementation of IColor.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
WebColor(int pRGBA)
Creates an opaque sRGB color with the specified combined RGB value consisting of 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. |
String |
getAsString()
Gets this Object as String. |
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. |
static WebColor |
getSystemColor(String pType)
Gets system color. |
void |
setAsString(String pValue)
Sets this Object as String. |
static void |
setSystemColor(String pType,
WebColor pSystemColor)
Sets userdefined color as system color. |
| Methods inherited from class com.sibvisions.rad.ui.web.impl.WebResource |
|---|
getNullableAsString, getResource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.rad.ui.IResource |
|---|
getResource |
| Constructor Detail |
|---|
public WebColor(int pRGBA)
pRGBA - the combined RGB componentsIColor,
IColor.getRed(),
IColor.getGreen(),
IColor.getBlue(),
IColor.getRGBA()| Method Detail |
|---|
public String getAsString()
getAsString in class WebResourcepublic int getRed()
getRed in interface IColorIColor.getRed(),
IColor.getGreen(),
IColor.getBlue()public int getGreen()
getGreen in interface IColorIColor.getRed(),
IColor.getGreen(),
IColor.getBlue()public int getBlue()
getBlue in interface IColorIColor.getRed(),
IColor.getGreen(),
IColor.getBlue()public int getAlpha()
getAlpha in interface IColorIColor.getRed(),
IColor.getGreen(),
IColor.getBlue()public int getRGBA()
getRGBA in interface IColorIColor.getRed(),
IColor.getGreen(),
IColor.getBlue()public void setAsString(String pValue)
setAsString in class WebResourcepValue - the String.public static WebColor getSystemColor(String pType)
pType - SystemColor type
public static void setSystemColor(String pType,
WebColor pSystemColor)
pType - SystemColor typepSystemColor - color definitionSystemColor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||