public abstract static class DownloadOsmTask.AbstractInternalTask extends PleaseWaitRunnable
Modifier and Type | Field and Description |
---|---|
protected DataSet |
dataSet |
protected boolean |
newLayer |
protected boolean |
zoomAfterDownload |
progressMonitor
Constructor and Description |
---|
AbstractInternalTask(boolean newLayer,
java.lang.String title,
boolean ignoreException,
boolean zoomAfterDownload)
Constructs a new
AbstractInternalTask . |
AbstractInternalTask(boolean newLayer,
java.lang.String title,
ProgressMonitor progressMonitor,
boolean ignoreException,
boolean zoomAfterDownload)
Constructs a new
AbstractInternalTask . |
Modifier and Type | Method and Description |
---|---|
protected OsmDataLayer |
addNewLayerIfRequired(java.lang.String newLayerName) |
protected ProjectionBounds |
computeBbox(Bounds bounds) |
protected void |
computeBboxAndCenterScale(Bounds bounds) |
protected OsmDataLayer |
createNewLayer() |
protected OsmDataLayer |
createNewLayer(java.lang.String layerName) |
protected OsmDataLayer |
getEditLayer() |
protected OsmDataLayer |
getFirstDataLayer() |
protected int |
getNumDataLayers() |
protected void |
loadData(java.lang.String newLayerName,
Bounds bounds) |
afterFinish, cancel, canRunInBackground, finish, getProgressMonitor, operationCanceled, realRun, run
protected final boolean newLayer
protected final boolean zoomAfterDownload
public AbstractInternalTask(boolean newLayer, java.lang.String title, boolean ignoreException, boolean zoomAfterDownload)
AbstractInternalTask
.newLayer
- if true
, force download to a new layertitle
- message for the userignoreException
- If true, exception will be propagated to calling code. If false then
exception will be thrown directly in EDT. When this runnable is executed using executor framework
then use false unless you read result of task (because exception will get lost if you don't)zoomAfterDownload
- If true, the map view will zoom to download area after downloadpublic AbstractInternalTask(boolean newLayer, java.lang.String title, ProgressMonitor progressMonitor, boolean ignoreException, boolean zoomAfterDownload)
AbstractInternalTask
.newLayer
- if true
, force download to a new layertitle
- message for the userprogressMonitor
- progress monitorignoreException
- If true, exception will be propagated to calling code. If false then
exception will be thrown directly in EDT. When this runnable is executed using executor framework
then use false unless you read result of task (because exception will get lost if you don't)zoomAfterDownload
- If true, the map view will zoom to download area after downloadprotected OsmDataLayer getEditLayer()
protected int getNumDataLayers()
protected OsmDataLayer getFirstDataLayer()
protected OsmDataLayer createNewLayer(java.lang.String layerName)
protected OsmDataLayer createNewLayer()
protected ProjectionBounds computeBbox(Bounds bounds)
protected void computeBboxAndCenterScale(Bounds bounds)
protected OsmDataLayer addNewLayerIfRequired(java.lang.String newLayerName)