Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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`

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)

Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD