CSE115.BallWorld
Class BouncingPicture

java.lang.Object
  |
  +--CSE115.BallWorld.MovingBodyAdapter
        |
        +--CSE115.BallWorld.BouncingPicture
All Implemented Interfaces:
Colorable, EventListener, Graphic, Locatable, MouseListener, MouseMotionListener, MovingBody, Reactor, Rotatable, Shape, Sizeable

public class BouncingPicture
extends MovingBodyAdapter

A GIF or JPEG that bounces on the screen. Created: Sat Jan 31 15:26:27 2004

Author:
Phil Ventura

Field Summary
 
Fields inherited from interface NGP.Colorable
DEFAULT_GRAY
 
Constructor Summary
BouncingPicture(String filename)
          Creates a new BouncingPicture from the given file.
BouncingPicture(URL url)
          Creates a new BouncingPicture from the given URL.
 
Methods inherited from class CSE115.BallWorld.MovingBodyAdapter
contains, getBounds, getCenterLocation, getColor, getDimension, getDrawingPanel, getDx, getDy, getLocation, getRotation, hide, intersects, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, paint, react, setBackgroundColor, setColor, setDimension, setDrawingPanel, setFrameDelay, setLocation, setRotation, setVelocity, show, startBouncing, stopBouncing, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BouncingPicture

public BouncingPicture(String filename)
Creates a new BouncingPicture from the given file.

Parameters:
filename - the name of the file containing a GIF or JPEG.

BouncingPicture

public BouncingPicture(URL url)
Creates a new BouncingPicture from the given URL.

Parameters:
url - a URL to a GIF or JPEG.
See Also:
Utilities.createURL(String)