public class OverpassDownloadSource extends java.lang.Object implements DownloadSource<OverpassDownloadSource.OverpassDownloadData>
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
OverpassDownloadSource.OverpassDownloadData
Encapsulates data that is required to preform download from Overpass API.
|
static class |
OverpassDownloadSource.OverpassDownloadSourcePanel
The GUI representation of the Overpass download source.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FULL_DOWNLOAD_QUERY
Overpass query to retrieve all nodes and related parent objects,
|
| Constructor and Description |
|---|
OverpassDownloadSource() |
| Modifier and Type | Method and Description |
|---|---|
AbstractDownloadSourcePanel<OverpassDownloadSource.OverpassDownloadData> |
createPanel(DownloadDialog dialog)
Creates a panel with GUI specific for the download source.
|
void |
doDownload(OverpassDownloadSource.OverpassDownloadData data,
DownloadSettings settings)
Downloads the data.
|
java.lang.String |
getLabel()
Returns a string representation of this download source.
|
boolean |
onlyExpert()
Defines whether this download source should be visible only in the expert mode.
|
public static final java.lang.String FULL_DOWNLOAD_QUERY
public OverpassDownloadSource()
public AbstractDownloadSourcePanel<OverpassDownloadSource.OverpassDownloadData> createPanel(DownloadDialog dialog)
DownloadSourcecreatePanel in interface DownloadSource<OverpassDownloadSource.OverpassDownloadData>dialog - the parent download dialog, as DownloadDialog.getInstance() might not be initialized yetAbstractDownloadSourcePanel.public void doDownload(OverpassDownloadSource.OverpassDownloadData data, DownloadSettings settings)
DownloadSourcedoDownload in interface DownloadSource<OverpassDownloadSource.OverpassDownloadData>data - The required data for the download source.settings - The global settings of the download dialog, see DownloadDialog.public java.lang.String getLabel()
DownloadSourcegetLabel in interface DownloadSource<OverpassDownloadSource.OverpassDownloadData>public boolean onlyExpert()
DownloadSourceonlyExpert in interface DownloadSource<OverpassDownloadSource.OverpassDownloadData>true if the download source should be visible only in the
expert mode, false otherwise.