Class Color
java.lang.Object
Color
public class Color
- extends Object
Constructor Summary |
Color(int red,
int green,
int blue)
Constructs a new Color object. |
Method Summary |
int |
getBlue()
Gets the blue value of this color. |
int |
getGreen()
Gets the green value of this color. |
int |
getRed()
Gets the red value of this color. |
Methods inherited from class |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BLACK
public static final Color BLACK
BLUE
public static final Color BLUE
CYAN
public static final Color CYAN
DARK_GRAY
public static final Color DARK_GRAY
GRAY
public static final Color GRAY
GREEN
public static final Color GREEN
LIGHT_GRAY
public static final Color LIGHT_GRAY
MAGENTA
public static final Color MAGENTA
ORANGE
public static final Color ORANGE
PINK
public static final Color PINK
RED
public static final Color RED
WHITE
public static final Color WHITE
YELLOW
public static final Color YELLOW
Color
public Color(int red,
int green,
int blue)
- Constructs a new Color object.
- Parameters:
red
- the red value of the color (between 0 and 255)green
- the green value of the color (between 0 and 255)blue
- the blue value of the color (between 0 and 255)
getBlue
public int getBlue()
- Gets the blue value of this color.
- Returns:
- the blue value (between 0 and 255)
getGreen
public int getGreen()
- Gets the green value of this color.
- Returns:
- the green value (between 0 and 255)
getRed
public int getRed()
- Gets the red value of this color.
- Returns:
- the red value (between 0 and 255)