cse115.graphics.colors
Class Color

java.lang.Object
  extended by java.awt.Color
      extended by cse115.graphics.colors.Color
All Implemented Interfaces:
Paint, Transparency, Serializable
Direct Known Subclasses:
Black, Blue, Cyan, DarkGrey, Green, Grey, LightGrey, Magenta, Orange, Pink, Red, White, Yellow

public class Color
extends Color

A class that represents a color.

Author:
Carl G. Alphonce Created on: Sep 26, 2006
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.awt.Color
black, BLACK, blue, BLUE, cyan, CYAN, DARK_GRAY, darkGray, gray, GRAY, green, GREEN, LIGHT_GRAY, lightGray, magenta, MAGENTA, orange, ORANGE, pink, PINK, red, RED, white, WHITE, yellow, YELLOW
 
Fields inherited from interface java.awt.Transparency
BITMASK, OPAQUE, TRANSLUCENT
 
Constructor Summary
Color(int rgb)
          Creates a new instance of Color
Color(int redValue, int greenValue, int blueValue)
          Creates a new instance of Color see java.awt.Color#Color(int,int,int)
 
Method Summary
 
Methods inherited from class java.awt.Color
brighter, createContext, darker, decode, equals, getAlpha, getBlue, getColor, getColor, getColor, getColorComponents, getColorComponents, getColorSpace, getComponents, getComponents, getGreen, getHSBColor, getRed, getRGB, getRGBColorComponents, getRGBComponents, getTransparency, hashCode, HSBtoRGB, RGBtoHSB, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Color

public Color(int rgb)
Creates a new instance of Color

Parameters:
rgb - an RGB value
See Also:
Color.Color(int)

Color

public Color(int redValue,
             int greenValue,
             int blueValue)
Creates a new instance of Color see java.awt.Color#Color(int,int,int)

Parameters:
redValue - The red value of this color
greenValue - The green value of this color
blueValue - The blue value of this color