com.croftsoft.apps.sprite
Class ImpactUpdater

java.lang.Object
  extended by com.croftsoft.apps.sprite.ImpactUpdater
All Implemented Interfaces:
ComponentUpdater

public final class ImpactUpdater
extends Object
implements ComponentUpdater

Switches the Sprite Icon based upon heading changes.

Since:
2002-02-24
Version:
2002-03-23
Author:
David Wallace Croft

Constructor Summary
ImpactUpdater(IconSprite iconSprite, Icon normalIcon, Icon impactIcon, long impactDuration, 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

ImpactUpdater

public ImpactUpdater(IconSprite iconSprite,
                     Icon normalIcon,
                     Icon impactIcon,
                     long impactDuration,
                     Clock clock)
Method Detail

update

public void update(JComponent component)
Description copied from interface: com.croftsoft.core.animation.ComponentUpdater
Updates the state of a JComponent and calls repaint() as required.

Specified by:
update in interface ComponentUpdater

CroftSoft Javadoc

CroftSoft Apps Javadoc (2008-09-28 21:15:07)