muc.drawings
Class BalloonOnAString
java.lang.Object
muc.drawings.Balloon
muc.drawings.BalloonOnAString
public class BalloonOnAString
- extends Balloon
A graphical class that displays as a balloon with an attached string.
- Version:
- 2.0 January 2, 2007
- Author:
- John Kirchmeyer
Field Summary |
private int |
stringLength
The length of the string extending down from the bottom middle of the balloon. |
Constructor Summary |
BalloonOnAString(int over,
int down,
int size,
java.awt.Color color,
int stringLength)
Creates a new Balloon. |
Method Summary |
void |
draw(java.awt.Graphics g)
Draws this Balloon with an attached string. |
java.lang.String |
toString()
Returns a string representation of this Balloon. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
stringLength
private int stringLength
- The length of the string extending down from the bottom middle of the balloon.
BalloonOnAString
public BalloonOnAString(int over,
int down,
int size,
java.awt.Color color,
int stringLength)
- Creates a new Balloon.
- Parameters:
stringLength
- The length of the attached string.
draw
public void draw(java.awt.Graphics g)
- Draws this Balloon with an attached string.
- Overrides:
draw
in class Balloon
- Parameters:
g
- A Graphics context on which to draw.
toString
public java.lang.String toString()
- Returns a string representation of this Balloon.
- Overrides:
toString
in class Balloon
- Returns:
- a string representation of this Balloon.