edu.uci.ics.jung.algorithms.layout.util
Class VisRunner
- java.lang.Object
-
- edu.uci.ics.jung.algorithms.layout.util.VisRunner
-
-
Field Summary
Fields Modifier and Type Field and Description java.lang.ObjectpauseObjectUsed for synchronization.
-
Constructor Summary
Constructors Constructor and Description VisRunner(IterativeContext process)Creates an instance for the specified process.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description longgetSleepTime()voidpause()Make the relaxer thread wait.voidprerelax()Execute a loop of steps in the calling thread, firing no events.voidrelax()Execute a loop of steps in a new Thread, firing an event after each step.voidresume()Make the relaxer thread resume.voidrun()voidsetSleepTime(long sleepTime)voidstop()Set flags to stop the relaxer thread.
-
-
-
Constructor Detail
-
VisRunner
public VisRunner(IterativeContext process)
Creates an instance for the specified process.- Parameters:
process- the process (generally a layout) for which this instance is created
-
-
Method Detail
-
getSleepTime
public long getSleepTime()
- Returns:
- the relaxerThreadSleepTime
-
setSleepTime
public void setSleepTime(long sleepTime)
- Specified by:
setSleepTimein interfaceRelaxer- Parameters:
sleepTime- the sleep time to set for this thread
-
prerelax
public void prerelax()
Description copied from interface:RelaxerExecute a loop of steps in the calling thread, firing no events.
-
pause
public void pause()
Description copied from interface:RelaxerMake the relaxer thread wait.
-
relax
public void relax()
Description copied from interface:RelaxerExecute a loop of steps in a new Thread, firing an event after each step.
-
resume
public void resume()
Description copied from interface:RelaxerMake the relaxer thread resume.
-
stop
public void stop()
Description copied from interface:RelaxerSet flags to stop the relaxer thread.
-
run
public void run()
- Specified by:
runin interfacejava.lang.Runnable
-
-
DataMelt 3.0 © DataMelt by jWork.ORG