com.croftsoft.apps.cyborg
Class CyborgAnimator

java.lang.Object
  extended by com.croftsoft.apps.cyborg.CyborgAnimator
All Implemented Interfaces:
ComponentAnimator, ComponentPainter, ComponentUpdater, Initializable

public final class CyborgAnimator
extends Object
implements ComponentAnimator, Initializable

Graphical representation of the model.

Since:
2005-03-16
Version:
$Date: 2008/04/19 21:30:59 $
Author:
David Wallace Croft

Constructor Summary
CyborgAnimator(CyborgModel cyborgModel, Component component)
           
 
Method Summary
static int fromX(double x)
           
static int fromY(double y)
           
 void init()
           
 void paint(JComponent jComponent, Graphics2D graphics2D)
           
static double toX(int x)
           
static double toY(int y)
           
 void update(JComponent jComponent)
          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

CyborgAnimator

public CyborgAnimator(CyborgModel cyborgModel,
                      Component component)
Method Detail

fromX

public static int fromX(double x)

fromY

public static int fromY(double y)

toX

public static double toX(int x)

toY

public static double toY(int y)

init

public void init()
Specified by:
init in interface Initializable

update

public void update(JComponent jComponent)
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 jComponent,
                  Graphics2D graphics2D)
Specified by:
paint in interface ComponentPainter

CroftSoft Javadoc

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