com.croftsoft.core.animation.animator
Class WorldAnimator

java.lang.Object
  extended by com.croftsoft.core.animation.animator.WorldAnimator
All Implemented Interfaces:
ComponentAnimator, ComponentPainter, ComponentUpdater

public abstract class WorldAnimator
extends Object
implements ComponentAnimator

ComponentAnimator that maps Models to views.

Since:
2003-04-14
Version:
2003-06-18
Author:
David Wallace Croft

Constructor Summary
WorldAnimator(WorldAccessor worldAccessor)
           
 
Method Summary
protected  ComponentAnimator createComponentAnimator(ModelAccessor modelAccessor)
           
protected  ComponentAnimator getComponentAnimator(ModelAccessor modelAccessor)
           
 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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorldAnimator

public WorldAnimator(WorldAccessor worldAccessor)
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

paint

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

getComponentAnimator

protected ComponentAnimator getComponentAnimator(ModelAccessor modelAccessor)

createComponentAnimator

protected ComponentAnimator createComponentAnimator(ModelAccessor modelAccessor)

CroftSoft Javadoc

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