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 Relaxer
sleepTime
- the sleep time to set for this threadpublic void prerelax()
Relaxer
public void pause()
Relaxer
public void relax()
Relaxer
public void resume()
Relaxer
public void stop()
Relaxer
Copyright © 2015. All rights reserved.