Modifier and Type | Method and Description |
---|---|
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
|
$init, $instanceof, $super, $super, $supers, $supers, afterInit, isAssignableFrom, isInstance, proxy
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 valueCopyright © 2005-2023 Potix Corporation. All Rights Reserved.