Package com.androidplot.util
Class PlotStatistics
-
- 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.
-
-
Constructor Summary
Constructors Constructor Description PlotStatistics(long updateDelayMs, boolean annotatePlotEnabled)
-
Method Summary
Modifier and Type Method Description voidonBeforeDraw(@NonNull() Plot source, @NonNull() Canvas canvas)Fired immediately before the Plot "source" is drawn onto canvas. voidonAfterDraw(@NonNull() Plot source, @NonNull() Canvas canvas)Fired immediately after the Plot "source" is drawn onto canvas. voidsetEnabled(boolean isEnabled)voidsetAnnotatePlotEnabled(boolean enabled)-
-
Method Detail
-
onBeforeDraw
void onBeforeDraw(@NonNull() Plot source, @NonNull() Canvas canvas)
Fired immediately before the Plot "source" is drawn onto canvas. Commonly used by implementing Series instances to activate a read lock on it's self in preparation for the Plot's imminent reading of that series.
-
onAfterDraw
void onAfterDraw(@NonNull() Plot source, @NonNull() Canvas canvas)
Fired immediately after the Plot "source" is drawn onto canvas. Just as onBeforeDraw(...) is commonly used by Series implementations to activate a read lock, this method is commonly used to release that same lock.
-
setEnabled
void setEnabled(boolean isEnabled)
-
setAnnotatePlotEnabled
void setAnnotatePlotEnabled(boolean enabled)
-
-
-
-