MUC Javadocs Version 3.0 January 2, 2007

muc.drawings
Class Rect

java.lang.Object
  extended by muc.drawings.Rect

public class Rect
extends java.lang.Object

A graphical class that displays as a rectangle.

Version:
1.0 January 2, 2007
Author:
Blase Cindric & John Kirchmeyer

Field Summary
private  java.awt.Color color
          The Color of this rectangle.
private  int down
          The vertical position of the upper left corner of this rectangle.
private  int height
          The height of this rectangle.
private  int over
          The horizontal position of the upper left corner of this rectangle.
private  int width
          The width of this rectangle.
 
Constructor Summary
Rect(int over, int down, int width, int height, java.awt.Color color)
          Creates a new Rect.
 
Method Summary
 void draw(java.awt.Graphics g)
          Draws this object as the outline of an rectangle.
 void fill(java.awt.Graphics g)
          Draws this object as a solid, filled-in rectangle.
 void fillWithBorder(java.awt.Graphics g)
          Draws this object as a solid, filled-in rectangle with a black border.
 void fillWithBorder(java.awt.Graphics g, java.awt.Color borderColor)
          Draws this object as a solid, filled-in rectangle with a border.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

over

private int over
The horizontal position of the upper left corner of this rectangle.


down

private int down
The vertical position of the upper left corner of this rectangle.


width

private int width
The width of this rectangle.


height

private int height
The height of this rectangle.


color

private java.awt.Color color
The Color of this rectangle.

Constructor Detail

Rect

public Rect(int over,
            int down,
            int width,
            int height,
            java.awt.Color color)
Creates a new Rect.

Parameters:
over - The horizontal position of the upper left corner of this rectangle.
down - The vertical position of the upper left corner of this rectangle.
width - The width of this rectangle.
height - The height of this rectangle.
color - The Color of this rectangle.
Method Detail

draw

public void draw(java.awt.Graphics g)
Draws this object as the outline of an rectangle.

Parameters:
g - A Graphics context on which to draw.

fill

public void fill(java.awt.Graphics g)
Draws this object as a solid, filled-in rectangle.

Parameters:
g - A Graphics context on which to draw.

fillWithBorder

public void fillWithBorder(java.awt.Graphics g)
Draws this object as a solid, filled-in rectangle with a black border.

Parameters:
g - A Graphics context on which to draw.

fillWithBorder

public void fillWithBorder(java.awt.Graphics g,
                           java.awt.Color borderColor)
Draws this object as a solid, filled-in rectangle with a border.

Parameters:
g - A Graphics context on which to draw.
borderColor - The color of the border around the solid rectangle.

MUC Javadocs Version 3.0 January 2, 2007