Interface Relaxer
- All Known Implementing Classes:
VisRunner
public interface Relaxer
Interface for operating the relax iterations on a layout.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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
setSleepTime
(long i) void
stop()
Set flags to stop the relaxer thread.
-
Method Details
-
relax
void relax()Execute a loop of steps in a new Thread, firing an event after each step. -
prerelax
void prerelax()Execute a loop of steps in the calling thread, firing no events. -
pause
void pause()Make the relaxer thread wait. -
resume
void resume()Make the relaxer thread resume. -
stop
void stop()Set flags to stop the relaxer thread. -
setSleepTime
void setSleepTime(long i) - Parameters:
i
- the sleep time between iterations, in milliseconds
-