Class Animator
- java.lang.Object
-
- edu.uci.ics.jung.visualization.util.Animator
-
- All Implemented Interfaces:
java.lang.Runnable
public class Animator extends java.lang.Object implements java.lang.Runnable- Author:
- Tom Nelson - tomnelson@dev.java.net
-
-
Field Summary
Fields Modifier and Type Field Description protected IterativeContextprocessprotected longsleepTimehow long the relaxer thread pauses between iteration loops.protected booleanstopprotected java.lang.Threadthread
-
Constructor Summary
Constructors Constructor Description Animator(IterativeContext process)Animator(IterativeContext process, long sleepTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetSleepTime()voidrun()voidsetSleepTime(long sleepTime)voidstart()voidstop()
-
-
-
Field Detail
-
process
protected IterativeContext process
-
stop
protected boolean stop
-
thread
protected java.lang.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 relaxer thread sleep time
-
setSleepTime
public void setSleepTime(long sleepTime)
- Parameters:
sleepTime- the relaxer thread sleep time to set
-
start
public void start()
-
stop
public void stop()
-
run
public void run()
- Specified by:
runin interfacejava.lang.Runnable
-
-