MUC Javadocs Version 3.0 January 2, 2007

muc.drawings
Class Oval

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

public class Oval
extends java.lang.Object

A graphical class that displays as an oval.

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

Field Summary
private  java.awt.Color color
          The Color of this oval.
private  int down
          The vertical position of the upper left corner of this oval.
private  int height
          The height of this oval.
private  int over
          The horizontal position of the upper left corner of this oval.
private  int width
          The width of this oval.
 
Constructor Summary
Oval(int over, int down, int width, int height, java.awt.Color color)
          Creates a new Oval.
 
Method Summary
 void draw(java.awt.Graphics g)
          Draws this object as the outline of an oval.
 void drawWithBoundingRectangle(java.awt.Graphics g)
          Draws this object as the outline of an oval, and draws the bounding rectangle in light gray.
 void fill(java.awt.Graphics g)
          Draws this object as a solid, filled-in oval.
 void fillWithBorder(java.awt.Graphics g)
          Draws this object as a solid, filled-in oval with a black border.
 void fillWithBorder(java.awt.Graphics g, java.awt.Color borderColor)
          Draws this object as a solid, filled-in oval with a border.
 void fillWithBoundingRectangle(java.awt.Graphics g)
          Draws this object as a solid, filled-in oval, and draws the bounding rectangle in light gray.
 
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 oval.


down

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


width

private int width
The width of this oval.


height

private int height
The height of this oval.


color

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

Constructor Detail

Oval

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

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

draw

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

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 oval.

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 oval 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 oval with a border.

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

drawWithBoundingRectangle

public void drawWithBoundingRectangle(java.awt.Graphics g)
Draws this object as the outline of an oval, and draws the bounding rectangle in light gray.

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

fillWithBoundingRectangle

public void fillWithBoundingRectangle(java.awt.Graphics g)
Draws this object as a solid, filled-in oval, and draws the bounding rectangle in light gray.

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

MUC Javadocs Version 3.0 January 2, 2007