|
MUC Javadocs Version 3.0 January 2, 2007 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmuc.drawings.Arc
public class Arc
A graphical class that displays as an arc.
| 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 |
|---|
private int over
private int down
private int width
private int height
private int startAngle
private int arcAngle
private java.awt.Color color
| Constructor Detail |
|---|
public Arc(int over,
int down,
int width,
int height,
int startAngle,
int arcAngle,
java.awt.Color color)
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 |
|---|
public void draw(java.awt.Graphics g)
g - A Graphics context on which to draw.public void fill(java.awt.Graphics g)
g - A Graphics context on which to draw.public void fillWithBorder(java.awt.Graphics g)
g - A Graphics context on which to draw.
public void fillWithBorder(java.awt.Graphics g,
java.awt.Color borderColor)
g - A Graphics context on which to draw.borderColor - The color of the border around the solid oval.public void drawWithBoundingRectangle(java.awt.Graphics g)
g - A Graphics context on which to draw.public void fillWithBoundingRectangle(java.awt.Graphics g)
g - A Graphics context on which to draw.
|
MUC Javadocs Version 3.0 January 2, 2007 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||