org.openstreetmap.josm.gui.download
Class BoundingBoxSelection
java.lang.Object
org.openstreetmap.josm.gui.download.BoundingBoxSelection
- All Implemented Interfaces:
- DownloadSelection
public class BoundingBoxSelection
- extends java.lang.Object
- implements DownloadSelection
Bounding box selector.
Provides max/min lat/lon input fields as well as the "URL from www.openstreetmap.org" text field.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
latlon
private javax.swing.JTextField[] latlon
tfOsmUrl
private final javax.swing.JTextArea tfOsmUrl
showUrl
private final javax.swing.JTextArea showUrl
parent
private DownloadDialog parent
errorBorder
private javax.swing.border.Border errorBorder
BoundingBoxSelection
public BoundingBoxSelection()
registerBoundingBoxBuilder
protected void registerBoundingBoxBuilder()
buildDownloadAreaInputFields
protected void buildDownloadAreaInputFields()
addGui
public void addGui(DownloadDialog gui)
- Description copied from interface:
DownloadSelection
- Add the GUI elements to the dialog.
- Specified by:
addGui
in interface DownloadSelection
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 interface DownloadSelection
getDownloadArea
public Bounds getDownloadArea()
parseURL
private boolean parseURL(DownloadDialog gui)
updateBboxFields
private void updateBboxFields(Bounds area)
updateUrl
private void updateUrl(Bounds area)
setErrorMessage
protected void setErrorMessage(javax.swing.JTextField tf,
java.lang.String msg)
resetErrorMessage
protected void resetErrorMessage(javax.swing.JTextField tf)
JOSM