Class Cartoon
java.lang.Object
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 |
Cartoon
public Cartoon(Picture p)
- Constructor that takes the picture
- Parameters:
p - the picture to use
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 showxPos - the top left for the word balloonyPos - the top left for the word balloon
main
public static void main(String[] args)