com.androidplot.util
Class PlotStatistics

java.lang.Object
  extended by com.androidplot.util.PlotStatistics
All Implemented Interfaces:
PlotListener

public class PlotStatistics
extends Object
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
PlotStatistics(long updateDelayMs, boolean annotatePlotEnabled)
           
 
Method Summary
 void onAfterDraw(Plot source, android.graphics.Canvas canvas)
          Fired immediately after the Plot "source" is drawn onto canvas.
 void onBeforeDraw(Plot source, android.graphics.Canvas canvas)
          Fired immediately before the Plot "source" is drawn onto canvas.
 void setAnnotatePlotEnabled(boolean enabled)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlotStatistics

public PlotStatistics(long updateDelayMs,
                      boolean annotatePlotEnabled)
Method Detail

setAnnotatePlotEnabled

public void setAnnotatePlotEnabled(boolean enabled)

onBeforeDraw

public void onBeforeDraw(Plot source,
                         android.graphics.Canvas canvas)
Description copied from interface: PlotListener
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.

Specified by:
onBeforeDraw in interface PlotListener

onAfterDraw

public void onAfterDraw(Plot source,
                        android.graphics.Canvas canvas)
Description copied from interface: PlotListener
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.

Specified by:
onAfterDraw in interface PlotListener


Copyright © 2010-2013 androidplot.com. All Rights Reserved.