public class Color
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static Color |
BLACK
The predefined color black.
|
static Color |
BLUE
The predefined color blue.
|
static Color |
GRAY
The predefined color gray.
|
static Color |
GREEN
The predefined color green.
|
static Color |
RED
The predefined color red.
|
static Color |
WHITE
The predefined color white.
|
Constructor and Description |
---|
Color(byte red,
byte green,
byte blue)
Creates a new color from the given values.
|
Color(int rgb)
Creates a new color with the given RGB value.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
int |
getRGB()
Returns this color's RGB value as an
int . |
int |
hashCode() |
public static final Color BLACK
public static final Color RED
public static final Color GREEN
public static final Color BLUE
public static final Color GRAY
public static final Color WHITE
public Color(byte red, byte green, byte blue)
red
- The color's red valuegreen
- The color's green valueblue
- The color's blue valuepublic Color(int rgb)
rgb
- The RGB value of the new color (see getRGB()
for more information)public int getRGB()
int
. The blue value is stored in (the least
significant) byte 0, green in byte 1, and red in byte 2.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
Copyright 2020 Kieker Project, http://kieker-monitoring.net