| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.androidplot.util.Redrawer
public class Redrawer
Utility class for invoking Plot.redraw() on a backgorund thread at a set frequency.
| Constructor Summary | |
|---|---|
Redrawer(List<Plot> plots,
         float maxRefreshRate,
         boolean startImmediately)
 | 
|
Redrawer(Plot plot,
         float maxRefreshRate,
         boolean startImmediately)
 | 
|
| Method Summary | |
|---|---|
 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.  | 
| Methods inherited from class java.lang.Object | 
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public Redrawer(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)
| Method Detail | 
|---|
public void pause()
public void start()
public void finish()
public void run()
run in interface Runnablepublic void setMaxRefreshRate(float refreshRate)
refreshRate - Refresh rate in Hz.
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||