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
-
-
Field Summary
Fields Modifier and Type Field Description protected IterativeContext
process
protected long
sleepTime
how long the relaxer thread pauses between iteration loops.protected boolean
stop
protected java.lang.Thread
thread
-
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 long
getSleepTime()
void
run()
void
setSleepTime(long sleepTime)
void
start()
void
stop()
-
-
-
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:
run
in interfacejava.lang.Runnable
-
-