Package com.androidplot.util
Class Redrawer
-
-
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 causes the refresh thread to exit. voidrun()voidsetMaxRefreshRate(float refreshRate)-
-
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 causes the refresh thread to exit. Should always be called before exiting the application.
-
run
void run()
-
setMaxRefreshRate
void setMaxRefreshRate(float refreshRate)
-
-
-
-