com.croftsoft.core.animation.updater
Class BounceUpdater
java.lang.Object
com.croftsoft.core.animation.updater.BounceUpdater
- All Implemented Interfaces:
- ComponentUpdater
public final class BounceUpdater
- extends Object
- implements ComponentUpdater
Bounces a Sprite off the walls of a Rectangle.
- Since:
- 2002-02-15
- Version:
- 2003-07-11
- Author:
- David Wallace Croft
Method Summary |
void |
update(JComponent component)
Updates the state of a JComponent and calls repaint() as required. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BounceUpdater
public BounceUpdater(Sprite sprite,
Rectangle bounds,
Clock clock)
update
public void update(JComponent component)
- Description copied from interface:
ComponentUpdater
- Updates the state of a JComponent and calls repaint() as required.
- Specified by:
update
in interface ComponentUpdater
CroftSoft Core Javadoc (2008-09-28 20:58:02)