Class Cartoon

java.lang.Object
  extended by Cartoon

public class Cartoon
extends Object

Class to create a cartoon out of a picture

Author:
Barb Ericson

Constructor Summary
Cartoon(Picture p)
          Constructor that takes the picture
 
Method Summary
 void addWordBalloon(String message, int xPos, int yPos)
          Method to add a word balloon that contians the message
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Cartoon

public Cartoon(Picture p)
Constructor that takes the picture

Parameters:
p - the picture to use
Method Detail

addWordBalloon

public void addWordBalloon(String message,
                           int xPos,
                           int yPos)
Method to add a word balloon that contians the message

Parameters:
message - the text to show
xPos - the top left for the word balloon
yPos - the top left for the word balloon

main

public static void main(String[] args)