|
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.Poly
public class Poly
A graphical class that displays as a polygon.
Field Summary | |
---|---|
private java.awt.Color |
color
The Color of this polygon. |
private java.awt.Polygon |
p
A java.awt.Polygon for internal use. |
Constructor Summary | |
---|---|
Poly(java.awt.Color color)
Creates a new polygon. |
Method Summary | |
---|---|
void |
addPoint(int over,
int down)
|
void |
draw(java.awt.Graphics g)
Draws this object as the outline of a polygon. |
void |
fill(java.awt.Graphics g)
Draws this object as a solid, filled-in polygon. |
void |
fillWithBorder(java.awt.Graphics g)
Draws this object as a solid, filled-in polygon with a black border. |
void |
fillWithBorder(java.awt.Graphics g,
java.awt.Color borderColor)
Draws this object as a solid, filled-in polygon with a border. |
private void |
setColor(java.awt.Color color)
A method for internal use. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.awt.Polygon p
private java.awt.Color color
Constructor Detail |
---|
public Poly(java.awt.Color color)
color
- The Color of this polygon.Method Detail |
---|
public void addPoint(int over, int down)
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 polygon.private void setColor(java.awt.Color color)
|
MUC Javadocs Version 3.0 January 2, 2007 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |