|
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.Oval
public class Oval
A graphical class that displays as an oval.
| 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 |
|---|
private int over
private int down
private int width
private int height
private java.awt.Color color
| Constructor Detail |
|---|
public Oval(int over,
int down,
int width,
int height,
java.awt.Color color)
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 |
|---|
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 | |||||||||