MUC Javadocs Version 3.0 January 2, 2007

muc.drawings
Class Arc

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

public class Arc
extends java.lang.Object

A graphical class that displays as an arc.

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

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


down

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


width

private int width
The width of the bounding rectangle for this arc.


height

private int height
The height of the bounding rectangle for this arc.


startAngle

private int startAngle
The angle in degrees from which to start drawing the arc.


arcAngle

private int arcAngle
The angle in degrees specifying the amount of arc to draw.


color

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

Constructor Detail

Arc

public Arc(int over,
           int down,
           int width,
           int height,
           int startAngle,
           int arcAngle,
           java.awt.Color color)
Creates a new arc.

Parameters:
over - horizontal position of the upper left corner of the bounding rectangle for this arc.
down - vertical position of the upper left corner of the bounding rectangle for this arc.
width - width of the bounding rectangle for this arc.
height - height of the bounding rectangle for this arc.
startAngle - angle in degrees from which to start drawing the arc.
arcAngle - angle in degrees specifying the amount of arc to draw.
color - color of this arc.
Method Detail

draw

public void draw(java.awt.Graphics g)
Draws this object as an arc.

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

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 arc 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 arc 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 arc, 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 arc, 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