All Packages Class Hierarchy This Package Previous Next Index
Class com.bulletproof.gui.Color
java.lang.Object
|
+----com.bulletproof.gui.Color
- public class Color
- extends Object
A class to encapsulate RGB Colors.
-
black
- The color black.
-
blue
- The color blue.
-
cyan
- The color cyan.
-
darkGray
- The color dark gray.
-
factor
-
-
gray
- The color gray.
-
green
- The color green.
-
lightGray
- The color light gray.
-
magenta
- The color magneta.
-
orange
- The color orange.
-
pink
- The color pink.
-
purple
- The color magneta.
-
red
- The color red.
-
white
- The color white.
-
yellow
- The color yellow.
-
Color(int, int, int)
- Creates a color with the specified red, green, and blue values in
the range (0 - 255).
-
brighter()
-
-
darker()
-
-
equals(Color)
- Compare two colors to see if they are the same.
white
public static final Color white
- The color white.
lightGray
public static final Color lightGray
- The color light gray.
gray
public static final Color gray
- The color gray.
darkGray
public static final Color darkGray
- The color dark gray.
black
public static final Color black
- The color black.
red
public static final Color red
- The color red.
pink
public static final Color pink
- The color pink.
orange
public static final Color orange
- The color orange.
yellow
public static final Color yellow
- The color yellow.
green
public static final Color green
- The color green.
magenta
public static final Color magenta
- The color magneta.
purple
public static final Color purple
- The color magneta.
cyan
public static final Color cyan
- The color cyan.
blue
public static final Color blue
- The color blue.
factor
public static double factor
Color
public Color(int r,
int g,
int b)
- Creates a color with the specified red, green, and blue values in
the range (0 - 255). The actual color used in rendering will depend
on finding the best match given the color space available for a
given output device.
- Parameters:
- r - the red component
- g - the green component
- b - the blue component
darker
public Color darker()
brighter
public Color brighter()
equals
public boolean equals(Color compareColor)
- Compare two colors to see if they are the same.
- Parameters:
- compareColor - the color to compare with this one.
All Packages Class Hierarchy This Package Previous Next Index