com.croftsoft.apps.mars.view
Class TankAmmoAnimator

java.lang.Object
  extended by com.croftsoft.apps.mars.view.TankAmmoAnimator
All Implemented Interfaces:
ComponentAnimator, ComponentPainter, ComponentUpdater

public final class TankAmmoAnimator
extends Object
implements ComponentAnimator

Display the amount of ammo left in the tank.

Since:
2003-03-28
Version:
2003-07-17
Author:
David Wallace Croft

Constructor Summary
TankAmmoAnimator(TankAccessor tankAccessor, ImageCache imageCache, JComponent component)
          Main constructor.
 
Method Summary
 void paint(JComponent component, Graphics2D graphics)
           
 void setTankAccessor(TankAccessor tankAccessor)
           
 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

TankAmmoAnimator

public TankAmmoAnimator(TankAccessor tankAccessor,
                        ImageCache imageCache,
                        JComponent component)
                 throws IOException
Main constructor.

Throws:
IOException
Method Detail

setTankAccessor

public void setTankAccessor(TankAccessor tankAccessor)

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

paint

public void paint(JComponent component,
                  Graphics2D graphics)
Specified by:
paint in interface ComponentPainter

CroftSoft Javadoc

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