workspace.typeblocking
Class BlockDropAnimator
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BlockDropAnimator
public BlockDropAnimator(java.awt.Point focusPoint,
RenderableBlock childBlock,
RenderableBlock parentBlock)
- Constructs a TypeBlockTimer.
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformed
in interface java.awt.event.ActionListener