public class Color
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static Color |
BLACK |
static Color |
BLUE |
static Color |
CYAN |
static Color |
DARK_GRAY |
static Color |
GREEN |
static Color |
LIGHT_GRAY |
static Color |
MAGENTA |
static Color |
RED |
static Color |
WHITE |
static Color |
YELLOW |
| Constructor and Description |
|---|
Color(int value) |
Color(int r,
int g,
int b) |
Color(int red,
int green,
int blue,
int alpha) |
| Modifier and Type | Method and Description |
|---|---|
static Color |
decode(java.lang.String hexColor) |
int |
getAlpha() |
int |
getBlue() |
int |
getGreen() |
int |
getRed() |
int |
getRGB() |
public static final Color WHITE
public static final Color BLACK
public static final Color BLUE
public static final Color CYAN
public static final Color DARK_GRAY
public static final Color GREEN
public static final Color LIGHT_GRAY
public static final Color MAGENTA
public static final Color RED
public static final Color YELLOW
public Color(int value)
public Color(int r,
int g,
int b)
public Color(int red,
int green,
int blue,
int alpha)
public int getRGB()
public int getRed()
public int getGreen()
public int getBlue()
public int getAlpha()
public static Color decode(java.lang.String hexColor)
Copyright © 2019. All Rights Reserved.