MUC Javadocs Version 3.0 January 2, 2007

muc.drawings
Class BalloonOnAString

java.lang.Object
  extended by muc.drawings.Balloon
      extended by 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 muc.drawings.Balloon
getColor, getDown, getOver, getSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

stringLength

private int stringLength
The length of the string extending down from the bottom middle of the balloon.

Constructor Detail

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.
Method Detail

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.

MUC Javadocs Version 3.0 January 2, 2007