Package org.ka2ddo.yaac.gui.osm
Class OSMLayer
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
com.bbn.openmap.Layer
org.ka2ddo.yaac.gui.osm.OSMLayer
- All Implemented Interfaces:
com.bbn.openmap.event.MapMouseListener
,com.bbn.openmap.event.ProjectionListener
,com.bbn.openmap.ProjectionPainter
,com.bbn.openmap.PropertyConsumer
,ActionListener
,ComponentListener
,ImageObserver
,MenuContainer
,BeanContextChild
,BeanContextMembershipListener
,Serializable
,Runnable
,EventListener
,FlushableLayer
public class OSMLayer
extends com.bbn.openmap.Layer
implements Runnable, ComponentListener, com.bbn.openmap.event.MapMouseListener, FlushableLayer
This class implements a rendering Layer for OpenMap that draws street maps
on the MapBean based on the binary tiled map data extracted from the
OpenStreetMap database.
- Author:
- Andrew Pavlin, KA2DDO
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Color
The default color used for filling building outlines on the OpenStreetMap layer of the map.static final float
Maximum value of map scale for rendering marine Nodes without either matching a searched-for AmenityType or having an expanded zoom level (due to being a Place).static final float
Maximum value of map scale for rendering the labels of Nodes without either matching a searched-for AmenityType or having an expanded zoom level (due to being a Place).static final float
Maximum value of map scale for rendering Nodes without either matching a searched-for AmenityType or having an expanded zoom level (due to being a Place).Fields inherited from class com.bbn.openmap.Layer
addAsBackground, AddAsBackgroundProperty, addToBeanContext, AddToBeanContextProperty, attributes, autoPalette, AutoPaletteProperty, beanContextChildSupport, coordTransform, DataPathPrefixProperty, DisplayPaletteCmd, DisplayPropertiesCmd, doHack, HidePaletteCmd, i18n, localHackList, maxScale, MaxScaleProperty, minScale, MinScaleProperty, palette, paletteListener, PrettyNameProperty, propertyPrefix, readyToPaint, RedrawCmd, removable, RemovableProperty, SWING_PACKAGE, TransformProperty, windowSupport
Fields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Fields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Fields inherited from interface com.bbn.openmap.PropertyConsumer
EditorProperty, initPropertiesProperty, LabelEditorProperty, ScopedEditorProperty
-
Constructor Summary
ConstructorDescriptionOSMLayer
(com.bbn.openmap.MapBean mapBean) Create a layer for the map that renders OpenStreetMap data from the default filetypes.OSMLayer
(com.bbn.openmap.MapBean mapBean, String nodesSuffix, String waysSuffix, String swaysSuffix) Create a layer for the map that renders OpenStreetMap data. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Invoked when the OSMLayer has been made invisible.void
Invoked when the OSMLayer's position changes.void
Invoked when the map window's size changes.void
Invoked when the OSMLayer has been made visible.void
Clear cached pointers to tile files.Report the specific AmenityType being highlighted on the map.Get the current color used for filling in buildings on the map.com.bbn.openmap.event.MapMouseListener
Specify the object to receive OpenMap mouse events on behalf of the OSM Layer.String[]
Specify the behavior the MapBean should give to this OSMLayer for mouse input.Get the type-specific visibility controls for this OSMLayer instance.void
Load the persisted zoom levels for Place labels from the Preferences backing store.static boolean
Report whether YAAC is configured to try to auto-download pre-imported OSM tiles that are not currently on the system.boolean
Report whether seamark data should not be rendered.boolean
Report whether highway signs should be displayed on the map.boolean
Report whether map labels should be displayed in English if the default name is in some other locale and OpenStreetMap provides an English translation.final boolean
isShowLayer
(int index) Report whether the identified WayType layer should be rendered on the map.final boolean
Report whether the OpenStreetMap map overlay should be displayed.boolean
Report whether OSM Node points of interest should be displayed.boolean
Report if unlabeled and untyped map features should be displayed.boolean
Test if popup windows from clicking on a map feature will be allowed.boolean
Invoked when the mouse button has been clicked (pressed and released) on a component.boolean
mouseDragged
(MouseEvent mouseEvent) void
mouseEntered
(MouseEvent mouseEvent) Invoked when the mouse enters a component.void
mouseExited
(MouseEvent mouseEvent) Invoked when the mouse exits a component.void
boolean
mouseMoved
(MouseEvent mouseEvent) boolean
mousePressed
(MouseEvent mouseEvent) Invoked when a mouse button has been pressed on a component.boolean
mouseReleased
(MouseEvent mouseEvent) Invoked when a mouse button has been released on a component.protected void
Paint the rendered OpenStreetMap data into the map window.void
projectionChanged
(com.bbn.openmap.event.ProjectionEvent e) Callback from OpenMap when map projection is changed,void
Cause the OSMLayer to recompute its map based on current settings.void
Load all the WayParam and VisibleCtls objects from their cached Preference values (or defaults if not saved).final void
run()
DO NOT CALL: background thread to render OpenStreetMap data into a BufferedImage for painting on the map window.void
setAmenityToShow
(AmenityType amenityToShow) Specify that Ways and Nodes of the specified AmenityType should be highlighted on the map, regardless of zoom level, or that there is no special type to highlight.void
setAutoLoadOsmTiles
(boolean autoLoadOsmTiles) Specify whether auto-download of missing pre-imported OSM tiles should be performed.void
setBuildingColor
(Color buildingColor) Set the color to be used for filling building outlines on the map.void
setFontsAndSigns
(float fontScaleFactor) void
setHideSeamarks
(boolean hideSeamarks) Report whether seamark data should not be rendered.void
setShowHighwaySigns
(boolean showHighwaySigns) Specify whether highway signs should be displayed on the map.void
setShowLabelsInEnglish
(boolean showLabelsInEnglish) Specify whether map labels should be displayed in English if the default name is in some other locale and OpenStreetMap provides an English translation.void
setShowLayer
(boolean showLayer, int index) Specify whether the identified WayType layer should be rendered on the map.void
setShowMap
(boolean showMap) Specify whether the OpenStreetMap map overlay should be rendered.void
setShowPOI
(boolean showPOI) Specify whether OSM Node points of interest should be displayed.void
setShowUnlabeledWays
(boolean showUnlabeledWays) Specify if unlabeled and untyped map features should be displayed.void
setSuppressMapPopups
(boolean suppressMapPopups) Specify if streemap popup windows should be triggered from mouse clicks.void
Release the lock against rendering OSM data and start a fresh rendering.void
stopRegenerate
(int offsetX, int offsetY) Stop the current re-rendering of the map and set the pixel offsets for painting the last rendering of the OSM data.Methods inherited from class com.bbn.openmap.Layer
actionPerformed, addComponentListener, added, addInfoDisplayListener, addLayerStatusListener, addMouseListener, addVetoableChangeListener, childrenAdded, childrenRemoved, clearListeners, connectToBeanContext, createWindowSupport, disconnectFromBeanContext, dispose, finalize, findAndInit, findAndInit, findAndUndo, fireHideToolTip, firePaletteEvent, fireRequestBrowserContent, fireRequestBrowserContent, fireRequestCursor, fireRequestInfoLine, fireRequestInfoLine, fireRequestInfoLine, fireRequestMessage, fireRequestMessage, fireRequestToolTip, fireRequestToolTip, fireRequestURL, fireRequestURL, fireStatusUpdate, fireStatusUpdate, fireVetoableChange, getAddAsBackground, getAddToBeanContext, getAttribute, getBeanContext, getCoordTransform, getGUI, getIcon, getMaxScale, getMinScale, getPackage, getPalette, getProjection, getProperties, getPropertyInfo, getPropertyPrefix, getWindowSupport, hasGUI, hidePalette, isAutoPalette, isProjectionOK, isReadyToPaint, isRemovable, notifyHideHack, prependDataPathPrefix, putAttribute, removeComponentListener, removeConfirmed, removed, removeInfoDisplayListener, removeLayerStatusListener, removeVetoableChangeListener, renderDataForProjection, repaint, resetPalette, setAddAsBackground, setAddToBeanContext, setAutoPalette, setBeanContext, setCoordTransform, setIcon, setLayerProperties, setMaxScale, setMinScale, setName, setPaletteVisible, setProjection, setProjection, setProperties, setProperties, setPropertyPrefix, setReadyToPaint, setRemovable, setVisible, setWindowSupport, showPalette
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUI, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, update, updateUI
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
Methods inherited from class java.awt.Component
action, add, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.beans.beancontext.BeanContextChild
addPropertyChangeListener, removePropertyChangeListener
-
Field Details
-
DEFAULT_BUILDING_COLOR
The default color used for filling building outlines on the OpenStreetMap layer of the map. -
MAX_NODE_ZOOM
public static final float MAX_NODE_ZOOMMaximum value of map scale for rendering Nodes without either matching a searched-for AmenityType or having an expanded zoom level (due to being a Place). -
MAX_NODE_LABEL_ZOOM
public static final float MAX_NODE_LABEL_ZOOMMaximum value of map scale for rendering the labels of Nodes without either matching a searched-for AmenityType or having an expanded zoom level (due to being a Place).- See Also:
-
MAX_MARINE_NODE_ZOOM
public static final float MAX_MARINE_NODE_ZOOMMaximum value of map scale for rendering marine Nodes without either matching a searched-for AmenityType or having an expanded zoom level (due to being a Place).
-
-
Constructor Details
-
OSMLayer
public OSMLayer(com.bbn.openmap.MapBean mapBean) Create a layer for the map that renders OpenStreetMap data from the default filetypes.- Parameters:
mapBean
- MapBean that will contain this OSMLayer
-
OSMLayer
public OSMLayer(com.bbn.openmap.MapBean mapBean, String nodesSuffix, String waysSuffix, String swaysSuffix) Create a layer for the map that renders OpenStreetMap data.- Parameters:
mapBean
- MapBean that will contain this OSMLayernodesSuffix
- String suffix for files containing OpenStreetMap nodeswaysSuffix
- String suffix for files containing OpenStreetMap waysswaysSuffix
- String suffix for files containing OpenStreetMap ways with less information
-
-
Method Details
-
setFontsAndSigns
public void setFontsAndSigns(float fontScaleFactor) -
reloadMapParamsFromPreferences
public void reloadMapParamsFromPreferences()Load all the WayParam and VisibleCtls objects from their cached Preference values (or defaults if not saved). -
initializePlaceZoomLevels
public void initializePlaceZoomLevels()Load the persisted zoom levels for Place labels from the Preferences backing store. -
isShowMap
public final boolean isShowMap()Report whether the OpenStreetMap map overlay should be displayed.- Returns:
- boolean true if OpenStreetMap overlay is displayed
-
setShowMap
public void setShowMap(boolean showMap) Specify whether the OpenStreetMap map overlay should be rendered. Note this is independent of whether there actually is any OpenStreetMap data to render.- Parameters:
showMap
- boolean true if OpenStreetMap layer should be rendered
-
isShowLayer
public final boolean isShowLayer(int index) Report whether the identified WayType layer should be rendered on the map.- Parameters:
index
- WayType enumeration ordinal of type being queried- Returns:
- boolean true if ways of the specified WayType should be rendered
-
setShowLayer
public void setShowLayer(boolean showLayer, int index) Specify whether the identified WayType layer should be rendered on the map.- Parameters:
showLayer
- boolean true if ways of the specified WayType should be renderedindex
- WayType enumeration ordinal of type being specified
-
isShowHighwaySigns
public boolean isShowHighwaySigns()Report whether highway signs should be displayed on the map.- Returns:
- boolean true if highways signs should be displayed
-
setShowHighwaySigns
public void setShowHighwaySigns(boolean showHighwaySigns) Specify whether highway signs should be displayed on the map.- Parameters:
showHighwaySigns
- boolean true if highways signs should be displayed
-
isShowPOI
public boolean isShowPOI()Report whether OSM Node points of interest should be displayed.- Returns:
- boolean true if points of interest should be rendered on the map
-
setShowPOI
public void setShowPOI(boolean showPOI) Specify whether OSM Node points of interest should be displayed.- Parameters:
showPOI
- boolean true if points of interest should be rendered on the map
-
isShowUnlabeledWays
public boolean isShowUnlabeledWays()Report if unlabeled and untyped map features should be displayed.- Returns:
- boolean true if unlabeled/untyped map elements should be plotted
-
setShowUnlabeledWays
public void setShowUnlabeledWays(boolean showUnlabeledWays) Specify if unlabeled and untyped map features should be displayed.- Parameters:
showUnlabeledWays
- boolean true if unlabeled/untyped map elements should be plotted
-
isAutoLoadOsmTiles
public static boolean isAutoLoadOsmTiles()Report whether YAAC is configured to try to auto-download pre-imported OSM tiles that are not currently on the system.- Returns:
- boolean true if auto-download is enabled
-
setAutoLoadOsmTiles
public void setAutoLoadOsmTiles(boolean autoLoadOsmTiles) Specify whether auto-download of missing pre-imported OSM tiles should be performed.- Parameters:
autoLoadOsmTiles
- boolean true if auto-download should be enabled
-
isShowLabelsInEnglish
public boolean isShowLabelsInEnglish()Report whether map labels should be displayed in English if the default name is in some other locale and OpenStreetMap provides an English translation.- Returns:
- boolean true if English labels should be used
-
setShowLabelsInEnglish
public void setShowLabelsInEnglish(boolean showLabelsInEnglish) Specify whether map labels should be displayed in English if the default name is in some other locale and OpenStreetMap provides an English translation.- Parameters:
showLabelsInEnglish
- boolean true if English labels should be used
-
isHideSeamarks
public boolean isHideSeamarks()Report whether seamark data should not be rendered. Normally, OpenSeaMap data should be rendered, unless another layer is rendering it better.- Returns:
- boolean true if seamark map data should be rendered
-
setHideSeamarks
public void setHideSeamarks(boolean hideSeamarks) Report whether seamark data should not be rendered. Normally, OpenSeaMap data should be rendered, unless another layer is rendering it better.- Parameters:
hideSeamarks
- boolean true if seamark map data should be rendered
-
isSuppressMapPopups
public boolean isSuppressMapPopups()Test if popup windows from clicking on a map feature will be allowed.- Returns:
- boolean true if street map popup windows will not occur
-
setSuppressMapPopups
public void setSuppressMapPopups(boolean suppressMapPopups) Specify if streemap popup windows should be triggered from mouse clicks.- Parameters:
suppressMapPopups
- boolean true if popup windows should be prevented
-
getAmenityToShow
Report the specific AmenityType being highlighted on the map.- Returns:
- the currently highlighted AmenityType, or null for no highlighting
-
setAmenityToShow
Specify that Ways and Nodes of the specified AmenityType should be highlighted on the map, regardless of zoom level, or that there is no special type to highlight.- Parameters:
amenityToShow
- AmenityType to highlight, or null for no special highlighting
-
getBuildingColor
Get the current color used for filling in buildings on the map.- Returns:
- Color of building fill
-
setBuildingColor
Set the color to be used for filling building outlines on the map.- Parameters:
buildingColor
- Color for building fill
-
getVisibleCtls
Get the type-specific visibility controls for this OSMLayer instance.- Returns:
- VisibleEnum containing visibility controls for this layer
-
regenerateAndRepaint
public void regenerateAndRepaint()Cause the OSMLayer to recompute its map based on current settings. -
projectionChanged
public void projectionChanged(com.bbn.openmap.event.ProjectionEvent e) Callback from OpenMap when map projection is changed,- Specified by:
projectionChanged
in interfacecom.bbn.openmap.event.ProjectionListener
- Parameters:
e
- ProjectionEvent identifying new projection
-
paintComponent
Paint the rendered OpenStreetMap data into the map window.- Overrides:
paintComponent
in classJComponent
- Parameters:
g
- Graphics object to use for painting
-
stopRegenerate
public void stopRegenerate(int offsetX, int offsetY) Stop the current re-rendering of the map and set the pixel offsets for painting the last rendering of the OSM data. Typically used when map is being panned rapidly to allow the user to still see some map data without thrashing the system with aborted re-rendering for different re-centering and/or re-zooming of the map.- Parameters:
offsetX
- int horizontal pixel offset for painting the last render of the OSM data onto the mapoffsetY
- int vertical pixel offset for painting the last render of the OSM data onto the map
-
startRegenerate
public void startRegenerate()Release the lock against rendering OSM data and start a fresh rendering. -
run
public final void run()DO NOT CALL: background thread to render OpenStreetMap data into a BufferedImage for painting on the map window. -
flushFileCache
public void flushFileCache()Clear cached pointers to tile files. This is called when the configuration dialog changes the tile root directory path.- Specified by:
flushFileCache
in interfaceFlushableLayer
-
componentHidden
Invoked when the OSMLayer has been made invisible.- Specified by:
componentHidden
in interfaceComponentListener
-
componentMoved
Invoked when the OSMLayer's position changes.- Specified by:
componentMoved
in interfaceComponentListener
-
componentResized
Invoked when the map window's size changes.- Specified by:
componentResized
in interfaceComponentListener
-
componentShown
Invoked when the OSMLayer has been made visible.- Specified by:
componentShown
in interfaceComponentListener
-
getMapMouseListener
public com.bbn.openmap.event.MapMouseListener getMapMouseListener()Specify the object to receive OpenMap mouse events on behalf of the OSM Layer.- Overrides:
getMapMouseListener
in classcom.bbn.openmap.Layer
- Returns:
- the OSMLayer object itself
-
getMouseModeServiceList
Specify the behavior the MapBean should give to this OSMLayer for mouse input.- Specified by:
getMouseModeServiceList
in interfacecom.bbn.openmap.event.MapMouseListener
- Returns:
- the SELECT_MOUSE_MODE constant to specify selecting items with the mouse
-
mouseClicked
Invoked when the mouse button has been clicked (pressed and released) on a component.- Specified by:
mouseClicked
in interfacecom.bbn.openmap.event.MapMouseListener
-
mousePressed
Invoked when a mouse button has been pressed on a component.- Specified by:
mousePressed
in interfacecom.bbn.openmap.event.MapMouseListener
-
mouseReleased
Invoked when a mouse button has been released on a component.- Specified by:
mouseReleased
in interfacecom.bbn.openmap.event.MapMouseListener
-
mouseEntered
Invoked when the mouse enters a component.- Specified by:
mouseEntered
in interfacecom.bbn.openmap.event.MapMouseListener
-
mouseExited
Invoked when the mouse exits a component.- Specified by:
mouseExited
in interfacecom.bbn.openmap.event.MapMouseListener
-
mouseDragged
- Specified by:
mouseDragged
in interfacecom.bbn.openmap.event.MapMouseListener
-
mouseMoved
- Specified by:
mouseMoved
in interfacecom.bbn.openmap.event.MapMouseListener
-
mouseMoved
public void mouseMoved()- Specified by:
mouseMoved
in interfacecom.bbn.openmap.event.MapMouseListener
-