public final class RgbPalette extends Object
| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static RgbColor |
BLACK |
The
RgbColor object representing black. |
static RgbColor |
BLUE |
The
RgbColor object representing blue. |
static RgbColor |
CYAN |
The
RgbColor object representing cyan. |
static RgbColor |
DARK_GRAY |
The
RgbColor object representing dark gray. |
static RgbColor |
GRAY |
The
RgbColor object representing gray. |
static RgbColor |
GREEN |
The
RgbColor object representing green. |
static RgbColor |
LIGHT_GRAY |
The
RgbColor object representing light gray. |
static RgbColor |
MAGENTA |
The
RgbColor object representing magenta. |
static RgbColor |
RED |
The
RgbColor object representing red. |
static RgbColor |
TRANSPARENT |
The
RgbColor object representing transparent. |
static RgbColor |
WHITE |
The
RgbColor object representing white. |
static RgbColor |
YELLOW |
The
RgbColor object representing yellow. |
public static int parse(String colorString)
IllegalArgumentException is thrown.colorString - Indicates the character string representing the color in the format of #RGB,
#ARGB, #RRGGBB or #AARRGGBB.IllegalArgumentException - Throws this exception if the format of the character string is neither
#RGB, #ARGB, #RRGGBB or #AARRGGBB.