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.


Variable Index

 o black
The color black.
 o blue
The color blue.
 o cyan
The color cyan.
 o darkGray
The color dark gray.
 o factor
 o gray
The color gray.
 o green
The color green.
 o lightGray
The color light gray.
 o magenta
The color magneta.
 o orange
The color orange.
 o pink
The color pink.
 o purple
The color magneta.
 o red
The color red.
 o white
The color white.
 o yellow
The color yellow.

Constructor Index

 o Color(int, int, int)
Creates a color with the specified red, green, and blue values in the range (0 - 255).

Method Index

 o brighter()
 o darker()
 o equals(Color)
Compare two colors to see if they are the same.

Variables

 o white
 public static final Color white
The color white.

 o lightGray
 public static final Color lightGray
The color light gray.

 o gray
 public static final Color gray
The color gray.

 o darkGray
 public static final Color darkGray
The color dark gray.

 o black
 public static final Color black
The color black.

 o red
 public static final Color red
The color red.

 o pink
 public static final Color pink
The color pink.

 o orange
 public static final Color orange
The color orange.

 o yellow
 public static final Color yellow
The color yellow.

 o green
 public static final Color green
The color green.

 o magenta
 public static final Color magenta
The color magneta.

 o purple
 public static final Color purple
The color magneta.

 o cyan
 public static final Color cyan
The color cyan.

 o blue
 public static final Color blue
The color blue.

 o factor
 public static double factor

Constructors

 o 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

Methods

 o darker
 public Color darker()
 o brighter
 public Color brighter()
 o 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