|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.uci.ics.jung.algorithms.layout.util.VisRunner
public class VisRunner
Implementation of a relaxer thread for layouts.
Extracted from the VisualizationModel
in previous
versions of JUNG.
Field Summary | |
---|---|
protected boolean |
manualSuspend
|
Object |
pauseObject
Used for synchronization. |
protected IterativeContext |
process
|
protected boolean |
running
|
protected long |
sleepTime
how long the relaxer thread pauses between iteration loops. |
protected boolean |
stop
|
protected Thread |
thread
|
Constructor Summary | |
---|---|
VisRunner(IterativeContext process)
Creates an instance for the specified process. |
Method Summary | |
---|---|
long |
getSleepTime()
|
void |
pause()
Make the relaxer thread wait. |
void |
prerelax()
Execute a loop of steps in the calling thread, firing no events. |
void |
relax()
Execute a loop of steps in a new Thread, firing an event after each step. |
void |
resume()
Make the relaxer thread resume. |
void |
run()
|
void |
setSleepTime(long sleepTime)
Sets the sleep time. |
void |
stop()
Set flags to stop the relaxer thread. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean running
protected IterativeContext process
protected boolean stop
protected boolean manualSuspend
protected Thread thread
protected long sleepTime
public Object pauseObject
Constructor Detail |
---|
public VisRunner(IterativeContext process)
Method Detail |
---|
public long getSleepTime()
public void setSleepTime(long sleepTime)
Relaxer
setSleepTime
in interface Relaxer
sleepTime
- the sleep time to set for this threadpublic void prerelax()
Relaxer
prerelax
in interface Relaxer
public void pause()
Relaxer
pause
in interface Relaxer
public void relax()
Relaxer
relax
in interface Relaxer
public void resume()
Relaxer
resume
in interface Relaxer
public void stop()
Relaxer
stop
in interface Relaxer
public void run()
run
in interface Runnable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |