GraphLab Project

graphlab.plugins.algorithmanimator.core
Class AlgorithmAnimator

java.lang.Object
  extended by graphlab.plugins.algorithmanimator.core.AlgorithmAnimator
All Implemented Interfaces:
EventDispatcher, java.awt.event.ActionListener, java.util.EventListener

public class AlgorithmAnimator
extends java.lang.Object
implements EventDispatcher, java.awt.event.ActionListener

Actually the class which animates the algorithms!

Author:
Azin Azadi

Constructor Summary
AlgorithmAnimator(BlackBoard blackboard)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          handles gui control events
 void animateAlgorithm(AutomatedAlgorithm aa)
          The main method, Animates an algorithm
 Event animateEvent(Event ae)
           
 void createControlDialog(java.lang.String algorithmName)
          creates the GUI control frame
 Event dispatchEvent(Event event)
          dispatchs events that recieved from the algorithm
static void registerAtomAnimation(AtomAnimator a)
          registers a new kind of AtomAnimator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlgorithmAnimator

public AlgorithmAnimator(BlackBoard blackboard)
Method Detail

registerAtomAnimation

public static void registerAtomAnimation(AtomAnimator a)
registers a new kind of AtomAnimator

Parameters:
a -

animateEvent

public Event animateEvent(Event ae)

animateAlgorithm

public void animateAlgorithm(AutomatedAlgorithm aa)
The main method, Animates an algorithm

Parameters:
aa -

dispatchEvent

public Event dispatchEvent(Event event)
dispatchs events that recieved from the algorithm

Specified by:
dispatchEvent in interface EventDispatcher
Parameters:
event -
Returns:

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
handles gui control events

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
e -

createControlDialog

public void createControlDialog(java.lang.String algorithmName)
creates the GUI control frame

Parameters:
algorithmName -

GraphLab Project