public class LayerManager extends PausableThread implements Redrawer
PausableThread.ThreadPriority| Constructor and Description |
|---|
LayerManager(MapView mapView,
MapViewPosition mapViewPosition,
org.mapsforge.core.graphics.GraphicFactory graphicFactory) |
| Modifier and Type | Method and 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.
|
awaitPausing, finish, interrupt, isPausing, pause, proceed, runactiveCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic LayerManager(MapView mapView, MapViewPosition mapViewPosition, org.mapsforge.core.graphics.GraphicFactory graphicFactory)
public Layers getLayers()
public void redrawLayers()
RedrawerredrawLayers in interface Redrawerprotected void afterRun()
PausableThreadPausableThread.run() method. The default implementation is empty.afterRun in class PausableThreadprotected void doWork()
throws java.lang.InterruptedException
PausableThreaddoWork in class PausableThreadjava.lang.InterruptedException - if the thread has been interrupted.protected PausableThread.ThreadPriority getThreadPriority()
getThreadPriority in class PausableThreadprotected boolean hasWork()
hasWork in class PausableThread