workspace.typeblocking
Class BlockDropAnimator

java.lang.Object
  extended by workspace.typeblocking.BlockDropAnimator
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class BlockDropAnimator
extends java.lang.Object
implements java.awt.event.ActionListener

The BlockDropAnimator has two function, to fly a block to it's location and then attempt to link the child if possible. It takes in a RenderableBlock, drags the block, and drops it if possible. This class uses a timer to assist in the smooth animation of flight.


Constructor Summary
BlockDropAnimator(java.awt.Point focusPoint, RenderableBlock childBlock, RenderableBlock parentBlock)
          Constructs a TypeBlockTimer.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlockDropAnimator

public BlockDropAnimator(java.awt.Point focusPoint,
                         RenderableBlock childBlock,
                         RenderableBlock parentBlock)
Constructs a TypeBlockTimer.

Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener