Package 

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
      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)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PlotStatistics

        PlotStatistics(long updateDelayMs, boolean annotatePlotEnabled)
    • Method Detail

      • 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.