| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
VisRunner(IterativeContext process)
Creates an instance for the specified process.
|
| Modifier and Type | Method and Description |
|---|---|
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) |
void |
stop()
Set flags to stop the relaxer thread.
|
protected boolean running
protected IterativeContext process
protected boolean stop
protected boolean manualSuspend
protected Thread thread
protected long sleepTime
public Object pauseObject
public VisRunner(IterativeContext process)
process - the process (generally a layout) for which this instance is createdpublic long getSleepTime()
public void setSleepTime(long sleepTime)
setSleepTime in interface RelaxersleepTime - the sleep time to set for this threadpublic void prerelax()
Relaxerpublic void pause()
Relaxerpublic void relax()
Relaxerpublic void resume()
Relaxerpublic void stop()
RelaxerCopyright © 2016. All rights reserved.