Class UpdateDecoupler
java.lang.Object
slash.navigation.mapview.mapsforge.updater.UpdateDecoupler
Decouples position list changes from the map updating: serializes the work onto a single
background thread and dispatches it to the
EventMapUpdater for the list's current
characteristics. Keeps the event listeners off the rendering work.- Author:
- Christian Pesch
-
Constructor Summary
ConstructorsConstructorDescriptionUpdateDecoupler(PositionsModel positionsModel, Function<RouteCharacteristics, EventMapUpdater> updaterFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()voidhandleUpdate(int eventType, int firstRow, int lastRow) void
-
Constructor Details
-
Method Details
-
replaceRoute
public void replaceRoute() -
handleUpdate
public void handleUpdate(int eventType, int firstRow, int lastRow) -
dispose
public void dispose()
-