Class MapView

java.lang.Object
java.awt.Component
java.awt.Container
org.mapsforge.map.awt.view.MapView
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, org.mapsforge.map.view.MapView

public class MapView extends Container implements org.mapsforge.map.view.MapView
See Also:
  • Constructor Details

    • MapView

      public MapView()
  • Method Details

    • addInputListener

      public void addInputListener(org.mapsforge.map.view.InputListener listener)
    • addLayer

      public void addLayer(org.mapsforge.map.layer.Layer layer)
      Specified by:
      addLayer in interface org.mapsforge.map.view.MapView
    • addListeners

      public void addListeners()
    • destroy

      public void destroy()
      Clear map view.
      Specified by:
      destroy in interface org.mapsforge.map.view.MapView
    • destroyAll

      public void destroyAll()
      Clear all map view elements.
      i.e. layers, tile cache, label store, map view, resources, etc.
      Specified by:
      destroyAll in interface org.mapsforge.map.view.MapView
    • getBoundingBox

      public org.mapsforge.core.model.BoundingBox getBoundingBox()
      Specified by:
      getBoundingBox in interface org.mapsforge.map.view.MapView
    • getDimension

      public org.mapsforge.core.model.Dimension getDimension()
      Specified by:
      getDimension in interface org.mapsforge.map.view.MapView
    • getFpsCounter

      public org.mapsforge.map.view.FpsCounter getFpsCounter()
      Specified by:
      getFpsCounter in interface org.mapsforge.map.view.MapView
    • getFrameBuffer

      public org.mapsforge.map.view.FrameBuffer getFrameBuffer()
      Specified by:
      getFrameBuffer in interface org.mapsforge.map.view.MapView
    • getLayerManager

      public org.mapsforge.map.layer.LayerManager getLayerManager()
      Specified by:
      getLayerManager in interface org.mapsforge.map.view.MapView
    • getMapScaleBar

      public org.mapsforge.map.scalebar.MapScaleBar getMapScaleBar()
      Specified by:
      getMapScaleBar in interface org.mapsforge.map.view.MapView
    • getMapViewProjection

      public org.mapsforge.map.util.MapViewProjection getMapViewProjection()
      Specified by:
      getMapViewProjection in interface org.mapsforge.map.view.MapView
    • getModel

      public org.mapsforge.map.model.Model getModel()
      Specified by:
      getModel in interface org.mapsforge.map.view.MapView
    • onMoveEvent

      public void onMoveEvent()
      This method is called by internal programs only. The underlying mapView implementation will notify registered InputListener about the start of a manual move. Note that this method may be called multiple times while the move has been started. Also note that only manual moves get notified.
    • onZoomEvent

      public void onZoomEvent()
      This method is called by internal programs only. The underlying mapView implementation will notify registered InputListener about the start of a manual zoom. Note that this method may be called multiple times while the zoom has been started. Also note that only manual zooms get notified.
    • paint

      public void paint(Graphics graphics)
      Overrides:
      paint in class Container
    • removeInputListener

      public void removeInputListener(org.mapsforge.map.view.InputListener listener)
    • setCenter

      public void setCenter(org.mapsforge.core.model.LatLong center)
      Specified by:
      setCenter in interface org.mapsforge.map.view.MapView
    • setMapScaleBar

      public void setMapScaleBar(org.mapsforge.map.scalebar.MapScaleBar mapScaleBar)
      Specified by:
      setMapScaleBar in interface org.mapsforge.map.view.MapView
    • setZoomLevel

      public void setZoomLevel(byte zoomLevel)
      Specified by:
      setZoomLevel in interface org.mapsforge.map.view.MapView
    • setZoomLevelMax

      public void setZoomLevelMax(byte zoomLevelMax)
      Specified by:
      setZoomLevelMax in interface org.mapsforge.map.view.MapView
    • setZoomLevelMin

      public void setZoomLevelMin(byte zoomLevelMin)
      Specified by:
      setZoomLevelMin in interface org.mapsforge.map.view.MapView