Class FpsCounter


  • public class FpsCounter
    extends java.lang.Object
    An FPS counter measures the drawing frame rate.
    • Constructor Summary

      Constructors 
      Constructor Description
      FpsCounter​(org.mapsforge.core.graphics.GraphicFactory graphicFactory, DisplayModel displayModel)  
      FpsCounter​(DisplayModel displayModel, org.mapsforge.core.graphics.Paint paintBack, org.mapsforge.core.graphics.Paint paintFront)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void draw​(org.mapsforge.core.graphics.GraphicContext graphicContext)  
      boolean isVisible()  
      void setVisible​(boolean visible)  
      • Methods inherited from class java.lang.Object

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

      • FpsCounter

        public FpsCounter​(org.mapsforge.core.graphics.GraphicFactory graphicFactory,
                          DisplayModel displayModel)
      • FpsCounter

        public FpsCounter​(DisplayModel displayModel,
                          org.mapsforge.core.graphics.Paint paintBack,
                          org.mapsforge.core.graphics.Paint paintFront)
    • Method Detail

      • draw

        public void draw​(org.mapsforge.core.graphics.GraphicContext graphicContext)
      • isVisible

        public boolean isVisible()
      • setVisible

        public void setVisible​(boolean visible)