com.croftsoft.apps.mars.view
Class AmmoDumpAnimator

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

public final class AmmoDumpAnimator
extends ModelAnimator

The view for an AmmoDump.

Since:
2003-04-03
Version:
2003-04-17
Author:
David Wallace Croft

Field Summary
 
Fields inherited from class com.croftsoft.apps.mars.view.ModelAnimator
color, modelAccessor, newRepaintRectangle, oldRepaintRectangle, previouslyActive
 
Constructor Summary
AmmoDumpAnimator(AmmoDumpAccessor ammoDumpAccessor, AudioClipCache audioClipCache)
           
 
Method Summary
protected  void getRepaintRectangle(Rectangle repaintRectangle)
           
 void paint(JComponent component, Graphics2D graphics)
           
 void update(JComponent component)
          Updates the state of a JComponent and calls repaint() as required.
 
Methods inherited from class com.croftsoft.apps.mars.view.ModelAnimator
isUpdated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AmmoDumpAnimator

public AmmoDumpAnimator(AmmoDumpAccessor ammoDumpAccessor,
                        AudioClipCache audioClipCache)
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
Overrides:
update in class ModelAnimator

getRepaintRectangle

protected void getRepaintRectangle(Rectangle repaintRectangle)
Overrides:
getRepaintRectangle in class ModelAnimator

paint

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

CroftSoft Javadoc

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