-
-
Method Summary
Modifier and Type Method Description synchronized voidpause()Temporarily stop redrawing the plot. synchronized voidstart()Start/resume redrawing the plot. synchronized voidfinish()Internally, this causesthe refresh thread to exit. voidrun()voidsetMaxRefreshRate(float refreshRate)Set the maximum refresh rate that Redrawer should use. -
-
Constructor Detail
-
Redrawer
Redrawer(List<Plot> plots, float maxRefreshRate, boolean startImmediately)
- Parameters:
plots- List of Plot instances to be redrawnmaxRefreshRate- Desired frequency at which to redraw plots.startImmediately- If true, invokes run() immediately after construction.
-
Redrawer
Redrawer(Plot plot, float maxRefreshRate, boolean startImmediately)
-
-
Method Detail
-
pause
synchronized void pause()
Temporarily stop redrawing the plot.
-
start
synchronized void start()
Start/resume redrawing the plot.
-
finish
synchronized void finish()
Internally, this causesthe refresh thread to exit. Should always be calledbefore exiting the application.
-
run
void run()
-
setMaxRefreshRate
void setMaxRefreshRate(float refreshRate)
Set the maximum refresh rate that Redrawer should use. Actualrefresh rate could be slower.
- Parameters:
refreshRate- Refresh rate in Hz.
-
-
-
-