|
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.Flag
public class Flag
A graphical class that displays as a flag. The flag is a rectangle of one color with a horizontal stripe of another color.
Field Summary | |
---|---|
private int |
down
The vertical position of the upper left corner of this object. |
private java.awt.Color |
flagColor
The background color. |
private int |
HEIGHT
The overall height of this object. |
private int |
over
The horizontal position of the upper left corner of this object. |
private java.awt.Color |
stripeColor
The color of the horizontal stripe. |
private int |
WIDTH
The overall width of this object. |
Constructor Summary | |
---|---|
Flag(int over,
int down,
java.awt.Color flagColor,
java.awt.Color stripeColor)
Creates a new Flag. |
Method Summary | |
---|---|
void |
draw(java.awt.Graphics g)
Draws this Flag. |
java.lang.String |
toString()
Returns a string representation of this Flag. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private java.awt.Color flagColor
private java.awt.Color stripeColor
private int over
private int down
private final int WIDTH
private final int HEIGHT
Constructor Detail |
---|
public Flag(int over, int down, java.awt.Color flagColor, java.awt.Color stripeColor)
over
- The horizontal position of the upper left corner of this object.down
- The vertical position of the upper left corner of this object.flagColor
- The background color of this object.stripeColor
- The color of the horizontal stripe.Method Detail |
---|
public void draw(java.awt.Graphics g)
g
- A Graphics context on which to draw.public java.lang.String toString()
toString
in class java.lang.Object
|
MUC Javadocs Version 3.0 January 2, 2007 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |