public class Redrawer
extends java.lang.Object
implements java.lang.Runnable
Constructor and Description |
---|
Redrawer(java.util.List<Plot> plots,
float maxRefreshRate,
boolean startImmediately) |
Redrawer(Plot plot,
float maxRefreshRate,
boolean startImmediately) |
Modifier and Type | Method and Description |
---|---|
void |
finish()
Internally, this causes
the refresh thread to exit.
|
void |
pause()
Temporarily stop redrawing the plot.
|
void |
run() |
void |
setMaxRefreshRate(float refreshRate)
Set the maximum refresh rate that Redrawer should use.
|
void |
start()
Start/resume redrawing the plot.
|
public Redrawer(java.util.List<Plot> plots, float maxRefreshRate, boolean startImmediately)
plots
- List of Plot instances to be redrawnmaxRefreshRate
- Desired frequency at which to redraw plots.startImmediately
- If true, invokes run() immediately after construction.public Redrawer(Plot plot, float maxRefreshRate, boolean startImmediately)
public void pause()
public void start()
public void finish()
public void run()
run
in interface java.lang.Runnable
public void setMaxRefreshRate(float refreshRate)
refreshRate
- Refresh rate in Hz.