MUC Javadocs Version 3.0 January 2, 2007

muc.drawings
Class Balloon

java.lang.Object
  extended by muc.drawings.Balloon
Direct Known Subclasses:
BalloonOnAString

public class Balloon
extends java.lang.Object

A graphical class that displays as a balloon.

Version:
2.0 January 2, 2007
Author:
John Kirchmeyer

Field Summary
private  java.awt.Color color
          The Color for the body of this balloon.
private  int down
          The vertical position of the upper left corner of this balloon.
private  int over
          The horizontal position of the upper left corner of this balloon.
private  int size
          The width and height for the body of this balloon.
 
Constructor Summary
Balloon(int over, int down, int size, java.awt.Color color)
          Creates a new Balloon.
 
Method Summary
 void draw(java.awt.Graphics g)
          Draws this Balloon.
 java.awt.Color getColor()
           
 int getDown()
           
 int getOver()
           
 int getSize()
           
 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
 

Field Detail

over

private int over
The horizontal position of the upper left corner of this balloon.


down

private int down
The vertical position of the upper left corner of this balloon.


size

private int size
The width and height for the body of this balloon.


color

private java.awt.Color color
The Color for the body of this balloon.

Constructor Detail

Balloon

public Balloon(int over,
               int down,
               int size,
               java.awt.Color color)
Creates a new Balloon.

Parameters:
over - The horizontal position of the upper left corner of this balloon.
down - The vertical position of the upper left corner of this balloon.
color - The Color of this balloon.
size - The width and height of this balloon.
Method Detail

draw

public void draw(java.awt.Graphics g)
Draws this 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 java.lang.Object
Returns:
a string representation of this Balloon.

getOver

public int getOver()

getDown

public int getDown()

getColor

public java.awt.Color getColor()

getSize

public int getSize()

MUC Javadocs Version 3.0 January 2, 2007