org.mmtk.utility.gcspy
Class Color

java.lang.Object
  extended by org.mmtk.utility.gcspy.Color

public class Color
extends Object

Cut-down implementation of java.awt.Color sufficient to provide the server side (Stream) with colours


Field Summary
private  short b
           
static Color Black
           
static Color Blue
           
static Color Cyan
           
static Color DarkGray
           
private  short g
           
static Color Gray
           
static Color Green
           
static Color LightGray
           
static Color Magenta
           
static Color MidGray
           
static Color NavyBlue
           
static Color OffWhite
           
static Color Orange
           
static Color Pink
           
private  short r
           
static Color Red
           
static Color White
           
static Color Yellow
           
 
Constructor Summary
private Color(int r, int g, int b)
          Constructor for a simple RGB colour model.
  Color(short r, short g, short b)
          Constructor for a simple RGB colour model.
 
Method Summary
 short getBlue()
          Blue component
 short getGreen()
          Green component
 short getRed()
          Red component
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Black

public static final Color Black

Blue

public static final Color Blue

Cyan

public static final Color Cyan

DarkGray

public static final Color DarkGray

Gray

public static final Color Gray

Green

public static final Color Green

LightGray

public static final Color LightGray

Magenta

public static final Color Magenta

MidGray

public static final Color MidGray

NavyBlue

public static final Color NavyBlue

OffWhite

public static final Color OffWhite

Orange

public static final Color Orange

Pink

public static final Color Pink

Red

public static final Color Red

White

public static final Color White

Yellow

public static final Color Yellow

r

private short r

g

private short g

b

private short b
Constructor Detail

Color

public Color(short r,
             short g,
             short b)
Constructor for a simple RGB colour model.

Parameters:
r - red component
g - green component
b - blue component

Color

private Color(int r,
              int g,
              int b)
Constructor for a simple RGB colour model.

Parameters:
r - red component
g - green component
b - blue component
Method Detail

getRed

public short getRed()
Red component

Returns:
the red component

getGreen

public short getGreen()
Green component

Returns:
the green component

getBlue

public short getBlue()
Blue component

Returns:
the blue component