|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--CSE115.BallWorld.MovingBodyAdapter | +--CSE115.BallWorld.BouncingPicture
A GIF or JPEG that bounces on the screen. Created: Sat Jan 31 15:26:27 2004
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 |
public BouncingPicture(String filename)
BouncingPicture
from the given file.
filename
- the name of the file containing a GIF or JPEG.public BouncingPicture(URL url)
BouncingPicture
from the given URL.
url
- a URL to a GIF or JPEG.Utilities.createURL(String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |