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, run
activeCount, 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, yield
public LayerManager(MapView mapView, MapViewPosition mapViewPosition, org.mapsforge.core.graphics.GraphicFactory graphicFactory)
public Layers getLayers()
public void redrawLayers()
Redrawer
redrawLayers
in interface Redrawer
protected void afterRun()
PausableThread
PausableThread.run()
method. The default implementation is empty.afterRun
in class PausableThread
protected void doWork() throws java.lang.InterruptedException
PausableThread
doWork
in class PausableThread
java.lang.InterruptedException
- if the thread has been interrupted.protected PausableThread.ThreadPriority getThreadPriority()
getThreadPriority
in class PausableThread
protected boolean hasWork()
hasWork
in class PausableThread