Interface Relaxer
- All Known Implementing Classes:
VisRunner
public interface Relaxer
Interface for operating the relax iterations on a layout.
-
Method Summary
Modifier and TypeMethodDescriptionvoidpause()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.voidsetSleepTime(long i) voidstop()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
-