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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      PlotStatistics(long updateDelayMs, boolean annotatePlotEnabled)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      void onBeforeDraw(@NonNull() Plot source, @NonNull() Canvas canvas) Fired immediately before the Plot "source" is drawn onto canvas.
      void onAfterDraw(@NonNull() Plot source, @NonNull() Canvas canvas) Fired immediately after the Plot "source" is drawn onto canvas.
      void setEnabled(boolean isEnabled)
      void setAnnotatePlotEnabled(boolean enabled)
      • 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(@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.