public class ColorImpl extends AbstractColorAdv
| Modifier and Type | Field and Description |
|---|---|
static AbstractColorAdv |
BLACK |
static AbstractColorAdv |
BLUE |
static AbstractColorAdv |
GREEN |
static AbstractColorAdv |
RED |
static AbstractColorAdv |
WHITE |
| Constructor and Description |
|---|
ColorImpl(byte[] rgb) |
ColorImpl(byte r,
byte g,
byte b) |
ColorImpl(String htmlColor) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
byte[] |
getARGB()
Returns byte array in Alpha, Red, Green, Blue order
|
String |
getHtmlColor()
Gets the color html string expression, for example "#FF6622"
|
byte[] |
getRGB()
Gets the color types array, order by Red,Green,Blue
|
int |
hashCode() |
String |
toString() |
public static final AbstractColorAdv WHITE
public static final AbstractColorAdv BLACK
public static final AbstractColorAdv RED
public static final AbstractColorAdv GREEN
public static final AbstractColorAdv BLUE
public ColorImpl(byte[] rgb)
public ColorImpl(byte r,
byte g,
byte b)
public ColorImpl(String htmlColor)
public String getHtmlColor()
SColorpublic byte[] getRGB()
SColorpublic byte[] getARGB()
AbstractColorAdvgetARGB in class AbstractColorAdvCopyright © 2020. All rights reserved.