| java.lang.Object nextapp.echo2.app.Color
Color | public class Color implements Serializable(Code) | | A representation of a 24-bit RGB color.
|
Constructor Summary | |
public | Color(int rgb) Creates a new color from an integer value. | public | Color(int r, int g, int b) Creates a new color with specified red, green, and blue values. |
Method Summary | |
public boolean | equals(Object o) | public int | getBlue() Returns the blue component value of this color. | public int | getGreen() Returns the green component value of this color. | public int | getRed() Returns the red component value of this color. | public int | getRgb() Returns the color as an RGB value. | public int | hashCode() | public String | toString() |
BLACK | final public static Color BLACK(Code) | | The color black.
|
BLUE | final public static Color BLUE(Code) | | The color blue.
|
CYAN | final public static Color CYAN(Code) | | The color cyan.
|
DARKGRAY | final public static Color DARKGRAY(Code) | | The color dark gray.
|
GREEN | final public static Color GREEN(Code) | | The color green.
|
LIGHTGRAY | final public static Color LIGHTGRAY(Code) | | The color light gray.
|
MAGENTA | final public static Color MAGENTA(Code) | | The color magenta.
|
ORANGE | final public static Color ORANGE(Code) | | The color orange.
|
PINK | final public static Color PINK(Code) | | The color pink.
|
WHITE | final public static Color WHITE(Code) | | The color white.
|
YELLOW | final public static Color YELLOW(Code) | | The color yellow.
|
Color | public Color(int rgb)(Code) | | Creates a new color from an integer value.
The value should be of the for 0xRRGGBB.
Parameters: rgb - an integer representation for a color |
Color | public Color(int r, int g, int b)(Code) | | Creates a new color with specified red, green, and blue values. Each
value may range from 0 to 255.
Parameters: r - the red component value Parameters: g - the green component value Parameters: b - the blue component value |
getBlue | public int getBlue()(Code) | | Returns the blue component value of this color.
the blue component value of this color, from 0 to 255 |
getGreen | public int getGreen()(Code) | | Returns the green component value of this color.
the green component value of this color, from 0 to 255 |
getRed | public int getRed()(Code) | | Returns the red component value of this color.
the red component value of this color, from 0 to 255 |
getRgb | public int getRgb()(Code) | | Returns the color as an RGB value.
the color as an RGB value |
|
|