Class SlippyMapChooser
- java.lang.Object
-
- org.openstreetmap.josm.gui.download.SlippyMapChooser
-
- All Implemented Interfaces:
java.beans.PropertyChangeListener,java.util.EventListener,DownloadSelection
public class SlippyMapChooser extends java.lang.Object implements DownloadSelection, java.beans.PropertyChangeListener
JComponent that displays the slippy map tiles.- Since:
- 1390
-
-
Field Summary
Fields Modifier and Type Field Description private java.awt.DimensioniDownloadDialogDimensionprivate DownloadDialogiGuiprivate SlippyMapBBoxChooserpnlSlippyMapBBoxChooser
-
Constructor Summary
Constructors Constructor Description SlippyMapChooser()Create the chooser component.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddGui(DownloadDialog gui)Add the GUI elements to the dialog.javax.swing.ActionMapgetNavigationComponentActionMap()Returns the action map of the underlying navigation component.voidpropertyChange(java.beans.PropertyChangeEvent evt)voidrefreshTileSources()Refreshes the tile sourcesvoidsetDownloadArea(Bounds area)Sets the current download area.
-
-
-
Field Detail
-
iGui
private DownloadDialog iGui
-
pnlSlippyMapBBoxChooser
private final SlippyMapBBoxChooser pnlSlippyMapBBoxChooser
-
iDownloadDialogDimension
private java.awt.Dimension iDownloadDialogDimension
-
-
Constructor Detail
-
SlippyMapChooser
public SlippyMapChooser()
Create the chooser component.
-
-
Method Detail
-
addGui
public void addGui(DownloadDialog gui)
Description copied from interface:DownloadSelectionAdd the GUI elements to the dialog.- Specified by:
addGuiin interfaceDownloadSelection- Parameters:
gui- download dialog
-
setDownloadArea
public void setDownloadArea(Bounds area)
Description copied from interface:DownloadSelectionSets the current download area. The area may be null to clear the current download area.- Specified by:
setDownloadAreain interfaceDownloadSelection- Parameters:
area- the current download area
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent evt)
- Specified by:
propertyChangein interfacejava.beans.PropertyChangeListener
-
refreshTileSources
public final void refreshTileSources()
Refreshes the tile sources- Since:
- 6364
-
getNavigationComponentActionMap
public final javax.swing.ActionMap getNavigationComponentActionMap()
Returns the action map of the underlying navigation component.- Returns:
- the action map of the underlying navigation component
- Since:
- 8932
-
-