-
- All Implemented Interfaces:
-
com.androidplot.PlotListener
public class PlotStatistics implements PlotListener
!!! THIS CLASS IS STILL UNDER DEVELOPMENT AND MAY CONTAIN BUGS !!! Gathers performance statistics from a Plot. Instances of PlotStatistics should never be added to more than one Plot, otherwise the statiscs will be invalid.
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
annotatePlotEnabled
-
Constructor Summary
Constructors Constructor Description PlotStatistics(long updateDelayMs, boolean annotatePlotEnabled)
-
Method Summary
Modifier and Type Method Description void
setAnnotatePlotEnabled(boolean enabled)
void
onBeforeDraw(Plot source, Canvas canvas)
Fired immediately before the Plot "source" is drawn onto canvas.Commonly used by implementing Series instances to activate a readlock on it's self in preparation for the Plot's imminent readingof that series. void
onAfterDraw(Plot source, Canvas canvas)
Fired immediately after the Plot "source" is drawn onto canvas.Just as onBeforeDraw(...) is commonly used by Series implementationsto activate a read lock, this method is commonly used to release thatsame lock. void
setEnabled(boolean isEnabled)
-
-
Method Detail
-
setAnnotatePlotEnabled
void setAnnotatePlotEnabled(boolean enabled)
-
onBeforeDraw
void onBeforeDraw(Plot source, Canvas canvas)
Fired immediately before the Plot "source" is drawn onto canvas.Commonly used by implementing Series instances to activate a readlock on it's self in preparation for the Plot's imminent readingof that series.
-
onAfterDraw
void onAfterDraw(Plot source, Canvas canvas)
Fired immediately after the Plot "source" is drawn onto canvas.Just as onBeforeDraw(...) is commonly used by Series implementationsto activate a read lock, this method is commonly used to release thatsame lock.
-
setEnabled
void setEnabled(boolean isEnabled)
-
-
-
-