com.croftsoft.apps.mars.view
Class TankAnimator
java.lang.Object
com.croftsoft.apps.mars.view.ModelAnimator
com.croftsoft.apps.mars.view.TankAnimator
- All Implemented Interfaces:
- ComponentAnimator, ComponentPainter, ComponentUpdater
public final class TankAnimator
- extends ModelAnimator
The tank view.
- Since:
- 2003-01-23
- Version:
- 2003-07-17
- Author:
- David Wallace Croft
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TankAnimator
public TankAnimator(TankAccessor tankAccessor,
ImageCache imageCache,
AudioClipCache audioClipCache)
- Main constructor.
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 Apps Javadoc (2008-09-28 21:15:07)