public class Color
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static Color |
black |
static Color |
BLACK |
static Color |
blue |
static Color |
BLUE |
static Color |
cyan |
static Color |
CYAN |
static Color |
DARK_GRAY |
static Color |
DARK_GREEN |
static Color |
darkGray |
static Color |
darkGreen |
static Color |
gray |
static Color |
GRAY |
static Color |
green |
static Color |
GREEN |
static Color |
indigo |
static Color |
INDIGO |
static Color |
LIGHT_BLUE |
static Color |
LIGHT_GRAY |
static Color |
LIGHT_GREEN |
static Color |
lightBlue |
static Color |
lightGray |
static Color |
lightGreen |
static Color |
magenta |
static Color |
MAGENTA |
static Color |
maroon |
static Color |
MAROON |
static Color |
olive |
static Color |
OLIVE |
static Color |
orange |
static Color |
ORANGE |
static Color |
ORANGE_RED |
static Color |
orangeRed |
static Color |
pink |
static Color |
PINK |
static Color |
purple |
static Color |
PURPLE |
static Color |
red |
static Color |
RED |
static Color |
white |
static Color |
WHITE |
static Color |
yellow |
static Color |
YELLOW |
Constructor and Description |
---|
Color(java.awt.Color awtColor) |
Color(float r,
float g,
float b) |
Color(float r,
float g,
float b,
float a) |
Color(int rgb) |
Color(int rgba,
boolean hasalpha) |
Color(int r,
int g,
int b) |
Color(int r,
int g,
int b,
int a) |
Modifier and Type | Method and Description |
---|---|
static Color |
decode(java.lang.String nm) |
boolean |
equals(java.lang.Object obj) |
int |
getBlue() |
int |
getGreen() |
int |
getRed() |
int |
getRGB() |
int |
hashCode() |
java.lang.String |
toString() |
public static final Color white
public static final Color WHITE
public static final Color lightGray
public static final Color LIGHT_GRAY
public static final Color gray
public static final Color GRAY
public static final Color darkGray
public static final Color DARK_GRAY
public static final Color black
public static final Color BLACK
public static final Color red
public static final Color RED
public static final Color pink
public static final Color PINK
public static final Color orange
public static final Color ORANGE
public static final Color yellow
public static final Color YELLOW
public static final Color green
public static final Color GREEN
public static final Color lightGreen
public static final Color LIGHT_GREEN
public static final Color darkGreen
public static final Color DARK_GREEN
public static final Color olive
public static final Color OLIVE
public static final Color magenta
public static final Color MAGENTA
public static final Color orangeRed
public static final Color ORANGE_RED
public static final Color maroon
public static final Color MAROON
public static final Color cyan
public static final Color CYAN
public static final Color blue
public static final Color BLUE
public static final Color lightBlue
public static final Color LIGHT_BLUE
public static final Color purple
public static final Color PURPLE
public static final Color indigo
public static final Color INDIGO
public Color(int r, int g, int b, int a)
public Color(int r, int g, int b)
public Color(int rgb)
public Color(int rgba, boolean hasalpha)
public Color(float r, float g, float b)
public Color(float r, float g, float b, float a)
public Color(java.awt.Color awtColor)
public int getRed()
public int getGreen()
public int getBlue()
public int getRGB()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public static Color decode(java.lang.String nm) throws java.lang.NumberFormatException
java.lang.NumberFormatException