Class MapsforgeMapView

java.lang.Object
slash.navigation.mapview.BaseMapView
slash.navigation.mapview.mapsforge.MapsforgeMapView
All Implemented Interfaces:
PositionsSelectionModel, MapView

public class MapsforgeMapView extends BaseMapView
Implementation for a component that displays the positions of a position list on a map using the rewrite branch of the mapsforge project.
Author:
Christian Pesch
  • Constructor Details

    • MapsforgeMapView

      public MapsforgeMapView()
  • Method Details

    • initialize

      public void initialize(PositionsModel positionsModel, PositionListsModel positionListsModel, MapPreferencesModel preferencesModel, MapViewCallback mapViewCallback)
    • setBackgroundMap

      public void setBackgroundMap(File backgroundMap)
    • updateMapAndThemesAfterDirectoryScanning

      public void updateMapAndThemesAfterDirectoryScanning()
    • getDeviceScaleFactor

      protected float getDeviceScaleFactor()
    • createWaypointIcon

      public org.mapsforge.core.graphics.Bitmap createWaypointIcon(String color, String opacity)
    • isDownload

      public boolean isDownload()
    • getMapIdentifier

      public String getMapIdentifier()
    • getInitializationCause

      public Throwable getInitializationCause()
    • dispose

      public void dispose()
    • getComponent

      public Component getComponent()
    • resize

      public void resize()
    • showAllPositions

      public void showAllPositions()
    • showMapBorder

      public void showMapBorder(BoundingBox mapBoundingBox)
    • showCoverageOverlay

      public void showCoverageOverlay(BoundingBox mapBoundingBox, String category, Map<BoundingBox,Boolean> coverageTiles)
    • showPositionMagnifier

      public void showPositionMagnifier(List<NavigationPosition> positions)
    • getDisplayModel

      public org.mapsforge.map.model.DisplayModel getDisplayModel()
    • addLayer

      public void addLayer(org.mapsforge.map.layer.Layer layer)
    • addLayers

      public void addLayers(List<org.mapsforge.map.layer.Layer> layers)
    • addObjectsWithLayer

      public void addObjectsWithLayer(List<? extends ObjectWithLayer> withLayers)
    • removeLayer

      public void removeLayer(org.mapsforge.map.layer.Layer layer)
    • getTileSize

      public int getTileSize()
    • asLatLong

      public org.mapsforge.core.model.LatLong asLatLong(NavigationPosition position)
    • asLatLong

      public List<org.mapsforge.core.model.LatLong> asLatLong(List<NavigationPosition> positions)
    • getCenter

      public NavigationPosition getCenter()
    • setCenter

      public void setCenter(NavigationPosition position)
    • getBoundingBox

      public BoundingBox getBoundingBox()
    • getMapView

      public org.mapsforge.map.view.MapView getMapView()
    • getTrackLayer

      public org.mapsforge.map.layer.GroupLayer getTrackLayer()
    • isSupportsPrinting

      public boolean isSupportsPrinting()
    • print

      public void print(String title)
    • getMapsPath

      public String getMapsPath()
    • setMapsPath

      public void setMapsPath(String path) throws IOException
      Throws:
      IOException
    • getThemesPath

      public String getThemesPath()
    • setThemesPath

      public void setThemesPath(String path) throws IOException
      Throws:
      IOException
    • movePosition

      public void movePosition(PositionWithLayer positionWithLayer, Double longitude, Double latitude)
    • setSelectedPositions

      public void setSelectedPositions(int[] selectedPositions, boolean replaceSelection)
    • setSelectedPositions

      public void setSelectedPositions(List<NavigationPosition> selectedPositions)