Class Cartoon

java.lang.Object
  extended byCartoon

public class Cartoon
extends java.lang.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(java.lang.String message, int xPos, int yPos)
          Method to add a word balloon that contians the message
static void main(java.lang.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(java.lang.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(java.lang.String[] args)