edu.uci.ics.jung.visualization.util
Class Animator

java.lang.Object
  extended by edu.uci.ics.jung.visualization.util.Animator
All Implemented Interfaces:
Runnable

public class Animator
extends Object
implements Runnable

Author:
Tom Nelson - tomnelson@dev.java.net

Field Summary
protected  IterativeContext process
           
protected  long sleepTime
          how long the relaxer thread pauses between iteration loops.
protected  boolean stop
           
protected  Thread thread
           
 
Constructor Summary
Animator(IterativeContext process)
           
Animator(IterativeContext process, long sleepTime)
           
 
Method Summary
 long getSleepTime()
           
 void run()
           
 void setSleepTime(long sleepTime)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

process

protected IterativeContext process

stop

protected boolean stop

thread

protected Thread thread

sleepTime

protected long sleepTime
how long the relaxer thread pauses between iteration loops.

Constructor Detail

Animator

public Animator(IterativeContext process)

Animator

public Animator(IterativeContext process,
                long sleepTime)
Method Detail

getSleepTime

public long getSleepTime()
Returns:
the relaxerThreadSleepTime

setSleepTime

public void setSleepTime(long sleepTime)
Parameters:
relaxerThreadSleepTime - the relaxerThreadSleepTime to set

start

public void start()

stop

public void stop()

run

public void run()
Specified by:
run in interface Runnable


Copyright © 2009. All Rights Reserved.