|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object zk.Object zkex.inp.Color
public class Color
Defines a color for a colorbox (Colorbox
).
Available in ZK PE and EE
Field Summary |
---|
Fields inherited from class zk.Object |
---|
$class, $oid |
Method Summary | |
---|---|
void |
$init(String hex)
Constructor. |
String |
getHex()
Returns the color (in string as #RRGGBB). |
int |
getHue()
Returns the color hue |
Array |
getRGB()
Returns a color Array in [R,G,B] format, R,G,B are integer |
int |
getSaturation()
Returns the color saturation |
int |
getValue()
Returns the color value |
boolean |
setHex(String color)
verify the format of color string, and sets the color |
boolean |
setHSV(int h,
int s,
int v)
Stes the color hsv |
void |
setRGB(int r,
int g,
int b)
Sets the color into the color value of this widget in rgb integer |
Methods inherited from class zk.Object |
---|
$init, $instanceof, $super, $super, $supers, $supers, afterInit, isAssignableFrom, isInstance, proxy |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void $init(String hex)
hex
- the color in #RRGGBB format (hexdecimal).public void setRGB(int r, int g, int b)
r
- the color code of redg
- the color code of greenb
- the color code of biuepublic Array getRGB()
public int getHue()
public int getSaturation()
public int getValue()
public boolean setHex(String color)
color
- the color in #RRGGBB format (hexdecimal).
public String getHex()
Default: #000000
public boolean setHSV(int h, int s, int v)
h
- the color hues
- the color saturationv
- the color value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |