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)
           
 void onBeforeDraw(Plot source, android.graphics.Canvas canvas)
           
 void onPlotUpdate(PlotEvent event)
           
 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)

onPlotUpdate

public void onPlotUpdate(PlotEvent event)
Specified by:
onPlotUpdate in interface PlotListener

onBeforeDraw

public void onBeforeDraw(Plot source,
                         android.graphics.Canvas canvas)
Specified by:
onBeforeDraw in interface PlotListener

onAfterDraw

public void onAfterDraw(Plot source,
                        android.graphics.Canvas canvas)
Specified by:
onAfterDraw in interface PlotListener


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