com.croftsoft.core.animation.updater
Class BounceUpdater

java.lang.Object
  extended by 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

Constructor Summary
BounceUpdater(Sprite sprite, Rectangle bounds, Clock clock)
           
 
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
 

Constructor Detail

BounceUpdater

public BounceUpdater(Sprite sprite,
                     Rectangle bounds,
                     Clock clock)
Method Detail

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 Javadoc

CroftSoft Core Javadoc (2008-09-28 20:58:02)