|
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.Object muc.drawings.Rect
public class Rect
A graphical class that displays as a rectangle.
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 |
---|
private int over
private int down
private int width
private int height
private java.awt.Color color
Constructor Detail |
---|
public Rect(int over, int down, int width, int height, java.awt.Color color)
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 |
---|
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 rectangle.
|
MUC Javadocs Version 3.0 January 2, 2007 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |