public class JMapViewer extends javax.swing.JPanel implements TileLoaderListener
Modifier and Type | Class and Description |
---|---|
static class |
JMapViewer.ZOOM_BUTTON_STYLE
Apparence of zoom controls.
|
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
protected AttributionSupport |
attribution |
protected java.awt.Point |
center
x- and y-position of the center of this map-panel on the world map
denoted in screen pixel regarding the current zoom level.
|
static boolean |
debug
whether debug mode is enabled or not
|
protected javax.swing.event.EventListenerList |
evtListenerList |
protected java.util.List<MapMarker> |
mapMarkerList |
protected boolean |
mapMarkersVisible |
protected java.util.List<MapPolygon> |
mapPolygonList |
protected boolean |
mapPolygonsVisible |
protected java.util.List<MapRectangle> |
mapRectangleList |
protected boolean |
mapRectanglesVisible |
static int |
MAX_ZOOM
Maximum zoom level
|
static int |
MIN_ZOOM
Minimum zoom level
|
private static java.awt.Point[] |
move
Vectors for clock-wise tile painting
|
protected boolean |
scrollWrapEnabled |
protected TileController |
tileController |
protected boolean |
tileGridVisible |
protected TileSource |
tileSource |
protected int |
zoom
Current zoom level
|
protected JMapViewer.ZOOM_BUTTON_STYLE |
zoomButtonStyle |
protected javax.swing.JButton |
zoomInButton |
protected javax.swing.JButton |
zoomOutButton |
static boolean |
zoomReverseWheel
option to reverse zoom direction with mouse wheel
|
protected javax.swing.JSlider |
zoomSlider |
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
JMapViewer()
Creates a standard
JMapViewer instance that can be controlled via
mouse: hold right mouse button for moving, double click left mouse button
or use mouse wheel for zooming. |
JMapViewer(TileCache tileCache)
Creates a new
JMapViewer instance. |
JMapViewer(TileCache tileCache,
int downloadThreadCount)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addJMVListener(JMapViewerEventListener listener) |
void |
addMapMarker(MapMarker marker)
Add a
MapMarker . |
void |
addMapPolygon(MapPolygon polygon)
Add a
MapPolygon . |
void |
addMapRectangle(MapRectangle rectangle)
Add a
MapRectangle . |
private void |
fireJMVEvent(JMVCommandEvent evt)
Send an update to all objects registered with viewer
|
AttributionSupport |
getAttribution()
Returns attribution.
|
java.awt.Point |
getCenter() |
java.lang.Integer |
getLatOffset(double lat,
double lon,
double offset,
boolean checkOutside)
Calculates the position on the map of a given coordinate
|
java.util.List<MapMarker> |
getMapMarkerList()
Returns the list of
MapMarker s. |
boolean |
getMapMarkersVisible()
Determines whether
MapMarker s are painted or not. |
java.util.List<MapPolygon> |
getMapPolygonList()
Returns the list of
MapPolygon s. |
java.awt.Point |
getMapPosition(Coordinate coord)
Calculates the position on the map of a given coordinate
|
java.awt.Point |
getMapPosition(double lat,
double lon)
Calculates the position on the map of a given coordinate
|
java.awt.Point |
getMapPosition(double lat,
double lon,
boolean checkOutside)
Calculates the position on the map of a given coordinate
|
java.awt.Point |
getMapPosition(ICoordinate coord,
boolean checkOutside)
Calculates the position on the map of a given coordinate
|
java.util.List<MapRectangle> |
getMapRectangleList()
Returns the list of
MapRectangle s. |
double |
getMeterPerPixel()
Gets the meter per pixel.
|
ICoordinate |
getPosition()
Calculates the latitude/longitude coordinate of the center of the
currently displayed map area.
|
ICoordinate |
getPosition(int mapPointX,
int mapPointY)
Converts the relative pixel coordinate (regarding the top left corner of
the displayed map) into a latitude / longitude coordinate
|
ICoordinate |
getPosition(java.awt.Point mapPoint)
Converts the relative pixel coordinate (regarding the top left corner of
the displayed map) into a latitude / longitude coordinate
|
java.lang.Integer |
getRadius(MapMarker marker,
java.awt.Point p)
Calculates the position on the map of a given coordinate
|
TileCache |
getTileCache()
Return tile information caching class
|
TileController |
getTileController()
Returns the tile controller.
|
java.lang.String |
getToolTipText(java.awt.event.MouseEvent event) |
int |
getZoom() |
JMapViewer.ZOOM_BUTTON_STYLE |
getZoomButtonStyle()
Returns the zoom controls apparence style (horizontal/vertical).
|
boolean |
getZoomControlsVisible()
Determines whether zoom controls are displayed or not.
|
protected void |
initializeZoomSlider() |
boolean |
isMapPolygonsVisible()
Determines whether the
MapPolygon s are painted or not. |
boolean |
isMapRectanglesVisible()
Determines whether the
MapRectangle s are painted or not. |
boolean |
isScrollWrapEnabled()
Determines whether scroll wrap is enabled or not.
|
boolean |
isTileGridVisible()
Determines whether the tile grid is visible or not.
|
void |
moveMap(int x,
int y)
Moves the visible map pane.
|
protected void |
paintComponent(java.awt.Graphics g) |
protected void |
paintMarker(java.awt.Graphics g,
MapMarker marker)
Paint a single marker.
|
protected void |
paintPolygon(java.awt.Graphics g,
MapPolygon polygon)
Paint a single polygon.
|
protected void |
paintRectangle(java.awt.Graphics g,
MapRectangle rectangle)
Paint a single rectangle.
|
void |
removeAllMapMarkers()
Remove all
MapMarker s. |
void |
removeAllMapPolygons()
Remove all
MapPolygon s. |
void |
removeAllMapRectangles()
Remove all
MapRectangle s. |
void |
removeJMVListener(JMapViewerEventListener listener) |
void |
removeMapMarker(MapMarker marker)
Remove a
MapMarker . |
void |
removeMapPolygon(MapPolygon polygon)
Remove a
MapPolygon . |
void |
removeMapRectangle(MapRectangle rectangle)
Remove a
MapRectangle . |
void |
setCenter(java.awt.Point center) |
void |
setDisplayPosition(ICoordinate to,
int zoom)
Changes the map pane so that it is centered on the specified coordinate
at the given zoom level.
|
void |
setDisplayPosition(int x,
int y,
int zoom)
Sets the display position.
|
void |
setDisplayPosition(java.awt.Point mapPoint,
ICoordinate to,
int zoom)
Changes the map pane so that the specified coordinate at the given zoom
level is displayed on the map at the screen coordinate
mapPoint . |
void |
setDisplayPosition(java.awt.Point mapPoint,
int x,
int y,
int zoom)
Sets the display position.
|
void |
setDisplayToFitMapElements(boolean markers,
boolean rectangles,
boolean polygons)
Sets the displayed map pane and zoom level so that all chosen map elements are visible.
|
void |
setDisplayToFitMapMarkers()
Sets the displayed map pane and zoom level so that all map markers are visible.
|
void |
setDisplayToFitMapPolygons()
Sets the displayed map pane and zoom level so that all map polygons are visible.
|
void |
setDisplayToFitMapRectangles()
Sets the displayed map pane and zoom level so that all map rectangles are visible.
|
void |
setMapMarkerList(java.util.List<MapMarker> mapMarkerList)
Sets the list of
MapMarker s. |
void |
setMapMarkerVisible(boolean mapMarkersVisible)
Enables or disables painting of the
MapMarker |
void |
setMapPolygonList(java.util.List<MapPolygon> mapPolygonList)
Sets the list of
MapPolygon s. |
void |
setMapPolygonsVisible(boolean mapPolygonsVisible)
Enables or disables painting of the
MapPolygon s. |
void |
setMapRectangleList(java.util.List<MapRectangle> mapRectangleList)
Sets the list of
MapRectangle s. |
void |
setMapRectanglesVisible(boolean mapRectanglesVisible)
Enables or disables painting of the
MapRectangle s. |
void |
setScrollWrapEnabled(boolean scrollWrapEnabled)
Sets whether scroll wrap is enabled or not.
|
void |
setTileGridVisible(boolean tileGridVisible)
Sets whether the tile grid is visible or not.
|
void |
setTileLoader(TileLoader loader)
Sets the tile loader.
|
void |
setTileSource(TileSource tileSource)
Sets the tile source.
|
void |
setZoom(int zoom)
Set the zoom level
|
void |
setZoom(int zoom,
java.awt.Point mapPoint)
Set the zoom level and center point for display
|
void |
setZoomButtonStyle(JMapViewer.ZOOM_BUTTON_STYLE style)
Sets the zoom controls apparence style (horizontal/vertical).
|
void |
setZoomContolsVisible(boolean visible)
Sets whether zoom controls are displayed or not.
|
void |
tileLoadingFinished(Tile tile,
boolean success)
Will be called if a new
Tile has been loaded successfully. |
protected void |
zoomChanged(int oldZoom)
Every time the zoom level changes this method is called.
|
void |
zoomIn()
Increases the current zoom level by one
|
void |
zoomIn(java.awt.Point mapPoint)
Increases the current zoom level by one
|
void |
zoomOut()
Decreases the current zoom level by one
|
void |
zoomOut(java.awt.Point mapPoint)
Decreases the current zoom level by one
|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, 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, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, 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, setVisible, unregisterKeyboardAction, update
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
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, 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, getPeer, 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, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static boolean debug
public static boolean zoomReverseWheel
private static final java.awt.Point[] move
public static final int MAX_ZOOM
public static final int MIN_ZOOM
protected transient java.util.List<MapMarker> mapMarkerList
protected transient java.util.List<MapRectangle> mapRectangleList
protected transient java.util.List<MapPolygon> mapPolygonList
protected boolean mapMarkersVisible
protected boolean mapRectanglesVisible
protected boolean mapPolygonsVisible
protected boolean tileGridVisible
protected boolean scrollWrapEnabled
protected transient TileController tileController
protected java.awt.Point center
protected int zoom
protected javax.swing.JSlider zoomSlider
protected javax.swing.JButton zoomInButton
protected javax.swing.JButton zoomOutButton
protected JMapViewer.ZOOM_BUTTON_STYLE zoomButtonStyle
protected transient TileSource tileSource
protected transient AttributionSupport attribution
protected javax.swing.event.EventListenerList evtListenerList
public JMapViewer()
JMapViewer
instance that can be controlled via
mouse: hold right mouse button for moving, double click left mouse button
or use mouse wheel for zooming. Loaded tiles are stored in a
MemoryTileCache
and the tile loader uses 4 parallel threads for
retrieving the tiles.@Deprecated public JMapViewer(TileCache tileCache, int downloadThreadCount)
JMapViewer(TileCache)
JMapViewer
instance.tileCache
- The cache where to store tilesdownloadThreadCount
- not used anymorepublic JMapViewer(TileCache tileCache)
JMapViewer
instance.tileCache
- The cache where to store tilespublic java.lang.String getToolTipText(java.awt.event.MouseEvent event)
getToolTipText
in class javax.swing.JComponent
protected void initializeZoomSlider()
public void setDisplayPosition(ICoordinate to, int zoom)
public void setDisplayPosition(java.awt.Point mapPoint, ICoordinate to, int zoom)
mapPoint
.mapPoint
- point on the map denoted in pixels where the coordinate should
be setto
- specified coordinatezoom
- MIN_ZOOM
<= zoom level <=
TileSource.getMaxZoom()
public void setDisplayPosition(int x, int y, int zoom)
public void setDisplayPosition(java.awt.Point mapPoint, int x, int y, int zoom)
public void setDisplayToFitMapElements(boolean markers, boolean rectangles, boolean polygons)
markers
- whether to consider markersrectangles
- whether to consider rectanglespolygons
- whether to consider polygonspublic void setDisplayToFitMapMarkers()
public void setDisplayToFitMapRectangles()
public void setDisplayToFitMapPolygons()
public java.awt.Point getCenter()
public void setCenter(java.awt.Point center)
center
- the center to setpublic ICoordinate getPosition()
public ICoordinate getPosition(java.awt.Point mapPoint)
mapPoint
- relative pixel coordinate regarding the top left corner of the
displayed mappublic ICoordinate getPosition(int mapPointX, int mapPointY)
mapPointX
- X coordinatemapPointY
- Y coordinatepublic java.awt.Point getMapPosition(double lat, double lon, boolean checkOutside)
lat
- latitudelon
- longitudecheckOutside
- check if the point is outside the displayed areanull
if the point is not visible
and checkOutside set to true
public java.awt.Point getMapPosition(double lat, double lon)
lat
- latitudelon
- longitudenull
if the point is not visiblepublic java.lang.Integer getLatOffset(double lat, double lon, double offset, boolean checkOutside)
lat
- Latitudelon
- longitudeoffset
- Offset respect LatitudecheckOutside
- check if the point is outside the displayed areapublic java.lang.Integer getRadius(MapMarker marker, java.awt.Point p)
marker
- MapMarker object that define the x,y coordinatep
- coordinatepublic java.awt.Point getMapPosition(Coordinate coord)
coord
- coordinatenull
if the point is not visiblepublic java.awt.Point getMapPosition(ICoordinate coord, boolean checkOutside)
coord
- coordinatecheckOutside
- check if the point is outside the displayed areanull
if the point is not visible
and checkOutside set to true
public double getMeterPerPixel()
protected void paintComponent(java.awt.Graphics g)
paintComponent
in class javax.swing.JComponent
protected void paintMarker(java.awt.Graphics g, MapMarker marker)
g
- Graphics used for paintingmarker
- marker to paintprotected void paintRectangle(java.awt.Graphics g, MapRectangle rectangle)
g
- Graphics used for paintingrectangle
- rectangle to paintprotected void paintPolygon(java.awt.Graphics g, MapPolygon polygon)
g
- Graphics used for paintingpolygon
- polygon to paintpublic void moveMap(int x, int y)
x
- horizontal movement in pixel.y
- vertical movement in pixelpublic int getZoom()
public void zoomIn()
public void zoomIn(java.awt.Point mapPoint)
mapPoint
- point to choose as center for new zoom levelpublic void zoomOut()
public void zoomOut(java.awt.Point mapPoint)
mapPoint
- point to choose as center for new zoom levelpublic void setZoom(int zoom, java.awt.Point mapPoint)
zoom
- new zoom levelmapPoint
- point to choose as center for new zoom levelpublic void setZoom(int zoom)
zoom
- new zoom levelprotected void zoomChanged(int oldZoom)
getZoom()
.oldZoom
- the previous zoom levelpublic boolean isTileGridVisible()
true
if the tile grid is visible, false
otherwisepublic void setTileGridVisible(boolean tileGridVisible)
tileGridVisible
- true
if the tile grid is visible, false
otherwisepublic boolean getMapMarkersVisible()
MapMarker
s are painted or not.true
if MapMarker
s are painted, false
otherwisepublic void setMapMarkerVisible(boolean mapMarkersVisible)
MapMarker
mapMarkersVisible
- true
to enable painting of markersaddMapMarker(MapMarker)
,
getMapMarkerList()
public void setMapMarkerList(java.util.List<MapMarker> mapMarkerList)
MapMarker
s.mapMarkerList
- list of MapMarker
spublic java.util.List<MapMarker> getMapMarkerList()
MapMarker
s.MapMarker
spublic void setMapRectangleList(java.util.List<MapRectangle> mapRectangleList)
MapRectangle
s.mapRectangleList
- list of MapRectangle
spublic java.util.List<MapRectangle> getMapRectangleList()
MapRectangle
s.MapRectangle
spublic void setMapPolygonList(java.util.List<MapPolygon> mapPolygonList)
MapPolygon
s.mapPolygonList
- list of MapPolygon
spublic java.util.List<MapPolygon> getMapPolygonList()
MapPolygon
s.MapPolygon
spublic void addMapMarker(MapMarker marker)
MapMarker
.marker
- map marker to addpublic void removeMapMarker(MapMarker marker)
MapMarker
.marker
- map marker to removepublic void removeAllMapMarkers()
MapMarker
s.public void addMapRectangle(MapRectangle rectangle)
MapRectangle
.rectangle
- map rectangle to addpublic void removeMapRectangle(MapRectangle rectangle)
MapRectangle
.rectangle
- map rectangle to removepublic void removeAllMapRectangles()
MapRectangle
s.public void addMapPolygon(MapPolygon polygon)
MapPolygon
.polygon
- map polygon to addpublic void removeMapPolygon(MapPolygon polygon)
MapPolygon
.polygon
- map polygon to removepublic void removeAllMapPolygons()
MapPolygon
s.public void setZoomContolsVisible(boolean visible)
visible
- true
if zoom controls are displayed, false
otherwisepublic boolean getZoomControlsVisible()
true
if zoom controls are displayed, false
otherwisepublic void setTileSource(TileSource tileSource)
tileSource
- tile sourcepublic void tileLoadingFinished(Tile tile, boolean success)
TileLoaderListener
Tile
has been loaded successfully.
Loaded can mean downloaded or loaded from file cache.tileLoadingFinished
in interface TileLoaderListener
tile
- The tilesuccess
- true
if the tile has been loaded successfully, false
otherwisepublic boolean isMapRectanglesVisible()
MapRectangle
s are painted or not.true
if the MapRectangle
s are painted, false
otherwisepublic void setMapRectanglesVisible(boolean mapRectanglesVisible)
MapRectangle
s.mapRectanglesVisible
- true
to enable painting of rectanglesaddMapRectangle(MapRectangle)
,
getMapRectangleList()
public boolean isMapPolygonsVisible()
MapPolygon
s are painted or not.true
if the MapPolygon
s are painted, false
otherwisepublic void setMapPolygonsVisible(boolean mapPolygonsVisible)
MapPolygon
s.mapPolygonsVisible
- true
to enable painting of polygonsaddMapPolygon(MapPolygon)
,
getMapPolygonList()
public boolean isScrollWrapEnabled()
true
if scroll wrap is enabled, false
otherwisepublic void setScrollWrapEnabled(boolean scrollWrapEnabled)
scrollWrapEnabled
- true
if scroll wrap is enabled, false
otherwisepublic JMapViewer.ZOOM_BUTTON_STYLE getZoomButtonStyle()
public void setZoomButtonStyle(JMapViewer.ZOOM_BUTTON_STYLE style)
style
- JMapViewer.ZOOM_BUTTON_STYLE.VERTICAL
or JMapViewer.ZOOM_BUTTON_STYLE.HORIZONTAL
public TileController getTileController()
public TileCache getTileCache()
TileController.getTileCache()
public void setTileLoader(TileLoader loader)
loader
- tile loaderpublic AttributionSupport getAttribution()
public void addJMVListener(JMapViewerEventListener listener)
listener
- listener to setpublic void removeJMVListener(JMapViewerEventListener listener)
listener
- listener to removeprivate void fireJMVEvent(JMVCommandEvent evt)
evt
- event to dispatch