Class AwtGraphicMapView
java.lang.Object
java.awt.Component
java.awt.Container
slash.navigation.mapview.mapsforge.AwtGraphicMapView
- All Implemented Interfaces:
ImageObserver,MenuContainer,Serializable,org.mapsforge.map.view.MapView
Implementation of a
MapView Container.- Author:
- Christian Pesch, inspired by org.mapsforge.map.swing.view.MapView
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainerNested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy -
Field Summary
Fields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLayer(org.mapsforge.map.layer.Layer layer) voiddestroy()voidorg.mapsforge.core.model.BoundingBoxorg.mapsforge.core.model.Dimensionorg.mapsforge.map.view.FpsCounterorg.mapsforge.map.view.FrameBufferorg.mapsforge.map.layer.LayerManagerorg.mapsforge.core.model.Rotationorg.mapsforge.map.scalebar.MapScaleBarfloatfloatorg.mapsforge.map.util.MapViewProjectionorg.mapsforge.map.model.ModelgetModel()floatfloatvoidvoidrotate(org.mapsforge.core.model.Rotation rotation) voidsetCenter(org.mapsforge.core.model.LatLong center) voidsetMapScaleBar(org.mapsforge.map.scalebar.MapScaleBar mapScaleBar) voidsetMapViewCenterX(float mapViewCenterX) voidsetMapViewCenterY(float mapViewCenterY) voidsetZoomLevel(byte zoomLevel) voidsetZoomLevelMax(byte zoomLevelMax) voidsetZoomLevelMin(byte zoomLevelMin) Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addNotify, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, isValidateRoot, layout, list, list, locate, minimumSize, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusDownCycle, update, validate, validateTreeMethods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setMixingCutoutShape, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.mapsforge.map.view.MapView
getHeight, getWidth, repaint
-
Method Details
-
addLayer
public void addLayer(org.mapsforge.map.layer.Layer layer) - Specified by:
addLayerin interfaceorg.mapsforge.map.view.MapView
-
destroy
public void destroy()- Specified by:
destroyin interfaceorg.mapsforge.map.view.MapView
-
destroyAll
public void destroyAll()- Specified by:
destroyAllin interfaceorg.mapsforge.map.view.MapView
-
getBoundingBox
public org.mapsforge.core.model.BoundingBox getBoundingBox()- Specified by:
getBoundingBoxin interfaceorg.mapsforge.map.view.MapView
-
getDimension
public org.mapsforge.core.model.Dimension getDimension()- Specified by:
getDimensionin interfaceorg.mapsforge.map.view.MapView
-
getFpsCounter
public org.mapsforge.map.view.FpsCounter getFpsCounter()- Specified by:
getFpsCounterin interfaceorg.mapsforge.map.view.MapView
-
getFrameBuffer
public org.mapsforge.map.view.FrameBuffer getFrameBuffer()- Specified by:
getFrameBufferin interfaceorg.mapsforge.map.view.MapView
-
getLayerManager
public org.mapsforge.map.layer.LayerManager getLayerManager()- Specified by:
getLayerManagerin interfaceorg.mapsforge.map.view.MapView
-
getMapRotation
public org.mapsforge.core.model.Rotation getMapRotation()- Specified by:
getMapRotationin interfaceorg.mapsforge.map.view.MapView
-
getMapScaleBar
public org.mapsforge.map.scalebar.MapScaleBar getMapScaleBar()- Specified by:
getMapScaleBarin interfaceorg.mapsforge.map.view.MapView
-
getMapViewCenterX
public float getMapViewCenterX()- Specified by:
getMapViewCenterXin interfaceorg.mapsforge.map.view.MapView
-
getMapViewCenterY
public float getMapViewCenterY()- Specified by:
getMapViewCenterYin interfaceorg.mapsforge.map.view.MapView
-
getMapViewProjection
public org.mapsforge.map.util.MapViewProjection getMapViewProjection()- Specified by:
getMapViewProjectionin interfaceorg.mapsforge.map.view.MapView
-
getModel
public org.mapsforge.map.model.Model getModel()- Specified by:
getModelin interfaceorg.mapsforge.map.view.MapView
-
getOffsetX
public float getOffsetX()- Specified by:
getOffsetXin interfaceorg.mapsforge.map.view.MapView
-
getOffsetY
public float getOffsetY()- Specified by:
getOffsetYin interfaceorg.mapsforge.map.view.MapView
-
paint
-
rotate
public void rotate(org.mapsforge.core.model.Rotation rotation) - Specified by:
rotatein interfaceorg.mapsforge.map.view.MapView
-
setCenter
public void setCenter(org.mapsforge.core.model.LatLong center) - Specified by:
setCenterin interfaceorg.mapsforge.map.view.MapView
-
setMapScaleBar
public void setMapScaleBar(org.mapsforge.map.scalebar.MapScaleBar mapScaleBar) - Specified by:
setMapScaleBarin interfaceorg.mapsforge.map.view.MapView
-
setMapViewCenterX
public void setMapViewCenterX(float mapViewCenterX) - Specified by:
setMapViewCenterXin interfaceorg.mapsforge.map.view.MapView
-
setMapViewCenterY
public void setMapViewCenterY(float mapViewCenterY) - Specified by:
setMapViewCenterYin interfaceorg.mapsforge.map.view.MapView
-
setZoomLevel
public void setZoomLevel(byte zoomLevel) - Specified by:
setZoomLevelin interfaceorg.mapsforge.map.view.MapView
-
setZoomLevelMax
public void setZoomLevelMax(byte zoomLevelMax) - Specified by:
setZoomLevelMaxin interfaceorg.mapsforge.map.view.MapView
-
setZoomLevelMin
public void setZoomLevelMin(byte zoomLevelMin) - Specified by:
setZoomLevelMinin interfaceorg.mapsforge.map.view.MapView
-