com.croftsoft.core.animation.animator
Class TileAnimator

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

public final class TileAnimator
extends Object
implements ComponentAnimator

Paints a sliding tile pattern.

Since:
2002-02-20
Version:
2003-07-05
Author:
David Wallace Croft

Constructor Summary
TileAnimator(int offsetX, int offsetY, Icon icon, Shape tileShape, int deltaX, int deltaY)
          Convenience constructor.
TileAnimator(TilePainter tilePainter, int deltaX, int deltaY)
          Main constructor.
 
Method Summary
 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

TileAnimator

public TileAnimator(TilePainter tilePainter,
                    int deltaX,
                    int deltaY)
Main constructor.


TileAnimator

public TileAnimator(int offsetX,
                    int offsetY,
                    Icon icon,
                    Shape tileShape,
                    int deltaX,
                    int deltaY)
Convenience constructor.

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

CroftSoft Javadoc

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