public class Color
extends java.lang.Object
implements java.io.Externalizable
Modifier and Type | Field and Description |
---|---|
static Color |
black |
static Color |
BLACK |
static Color |
blue |
static Color |
BLUE |
static Color |
DARK_GRAY |
static Color |
gray |
static Color |
GRAY |
static Color |
green |
static Color |
GREEN |
static Color |
LIGHT_GRAY |
static Color |
lightGray |
static Color |
red |
static Color |
RED |
static Color |
transparent |
static Color |
white |
static Color |
WHITE |
static Color |
YELLOW |
Constructor and Description |
---|
Color() |
Color(int value) |
Color(int r,
int g,
int b) |
Color(int r,
int g,
int b,
int a) |
Modifier and Type | Method and Description |
---|---|
Color |
clone() |
static Color |
decode(java.lang.String colorString) |
int |
getAlpha() |
int |
getBlue() |
int |
getGreen() |
int |
getRed() |
void |
readExternal(java.io.ObjectInput in) |
int |
value() |
void |
writeExternal(java.io.ObjectOutput out) |
public static final Color BLACK
public static final Color WHITE
public static final Color RED
public static final Color GREEN
public static final Color BLUE
public static final Color GRAY
public static final Color DARK_GRAY
public static Color LIGHT_GRAY
public static Color YELLOW
public static Color transparent
public static Color black
public static Color white
public static Color red
public static Color green
public static Color blue
public static Color gray
public static Color lightGray
public Color()
public Color(int value)
public Color(int r, int g, int b, int a)
public Color(int r, int g, int b)
public int value()
public static Color decode(java.lang.String colorString)
public int getAlpha()
public int getRed()
public int getGreen()
public int getBlue()
public Color clone()
clone
in class java.lang.Object
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException