com.croftsoft.apps.cyborg
Class CyborgAnimator
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CyborgAnimator
public CyborgAnimator(CyborgModel cyborgModel,
Component component)
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 Apps Javadoc (2008-09-28 21:15:07)