com.croftsoft.core.animation.animator
Class ModelAnimator
java.lang.Object
com.croftsoft.core.animation.animator.ModelAnimator
- All Implemented Interfaces:
- ComponentAnimator, ComponentPainter, ComponentUpdater
public class ModelAnimator
- extends Object
- implements ComponentAnimator
The view for a Model.
- Since:
- 2003-04-01
- Version:
- 2003-06-06
- Author:
- David Wallace Croft
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
modelAccessor
protected final ModelAccessor modelAccessor
oldRepaintRectangle
protected final Rectangle oldRepaintRectangle
newRepaintRectangle
protected final Rectangle newRepaintRectangle
color
protected Color color
previouslyActive
protected boolean previouslyActive
ModelAnimator
public ModelAnimator(ModelAccessor modelAccessor,
Color color)
ModelAnimator
public ModelAnimator(ModelAccessor modelAccessor)
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
getRepaintRectangle
protected void getRepaintRectangle(Rectangle repaintRectangle)
isUpdated
protected boolean isUpdated()
paint
public void paint(JComponent component,
Graphics2D graphics)
- Specified by:
paint
in interface ComponentPainter
CroftSoft Core Javadoc (2008-09-28 20:58:02)