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.Dimension
iDownloadDialogDimension
private DownloadDialog
iGui
private SlippyMapBBoxChooser
pnlSlippyMapBBoxChooser
-
Constructor Summary
Constructors Constructor Description SlippyMapChooser()
Create the chooser component.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addGui(DownloadDialog gui)
Add the GUI elements to the dialog.javax.swing.ActionMap
getNavigationComponentActionMap()
Returns the action map of the underlying navigation component.void
propertyChange(java.beans.PropertyChangeEvent evt)
void
refreshTileSources()
Refreshes the tile sourcesvoid
setDownloadArea(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:DownloadSelection
Add the GUI elements to the dialog.- Specified by:
addGui
in interfaceDownloadSelection
- Parameters:
gui
- download dialog
-
setDownloadArea
public void setDownloadArea(Bounds area)
Description copied from interface:DownloadSelection
Sets the current download area. The area may be null to clear the current download area.- Specified by:
setDownloadArea
in interfaceDownloadSelection
- Parameters:
area
- the current download area
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent evt)
- Specified by:
propertyChange
in 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
-
-