Class LayerManager

    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.lang.Thread

        java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
    • Field Summary

      • Fields inherited from class java.lang.Thread

        MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
    • Constructor Summary

      Constructors 
      Constructor Description
      LayerManager​(MapView mapView, IMapViewPosition mapViewPosition, org.mapsforge.core.graphics.GraphicFactory graphicFactory)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void afterRun()
      Called once at the end of the PausableThread.run() method.
      protected void doWork()
      Called when this thread is not paused and should do its work.
      Layers getLayers()  
      protected PausableThread.ThreadPriority getThreadPriority()  
      protected boolean hasWork()  
      void redrawLayers()
      Requests an asynchronous redrawing of all layers.
      • Methods inherited from class java.lang.Thread

        activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
      • Methods inherited from class java.lang.Object

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

      • LayerManager

        public LayerManager​(MapView mapView,
                            IMapViewPosition mapViewPosition,
                            org.mapsforge.core.graphics.GraphicFactory graphicFactory)
    • Method Detail

      • getLayers

        public Layers getLayers()
      • redrawLayers

        public void redrawLayers()
        Description copied from interface: Redrawer
        Requests an asynchronous redrawing of all layers.
        Specified by:
        redrawLayers in interface Redrawer
      • doWork

        protected void doWork()
                       throws java.lang.InterruptedException
        Description copied from class: PausableThread
        Called when this thread is not paused and should do its work.
        Specified by:
        doWork in class PausableThread
        Throws:
        java.lang.InterruptedException - if the thread has been interrupted.
      • hasWork

        protected boolean hasWork()
        Specified by:
        hasWork in class PausableThread
        Returns:
        true if this thread has some work to do, false otherwise.