public abstract static class DownloadOsmTask.AbstractInternalTask extends PleaseWaitRunnable
Modifier and Type | Field and Description |
---|---|
protected DataSet |
dataSet |
protected boolean |
newLayer |
progressMonitor
Constructor and Description |
---|
DownloadOsmTask.AbstractInternalTask(boolean newLayer,
java.lang.String title,
boolean ignoreException)
Constructs a new
AbstractInternalTask . |
DownloadOsmTask.AbstractInternalTask(boolean newLayer,
java.lang.String title,
ProgressMonitor progressMonitor,
boolean ignoreException)
Constructs a new
AbstractInternalTask . |
Modifier and Type | Method and Description |
---|---|
protected OsmDataLayer |
addNewLayerIfRequired(java.lang.String newLayerName,
Bounds bounds) |
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
public DownloadOsmTask.AbstractInternalTask(boolean newLayer, java.lang.String title, boolean ignoreException)
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)public DownloadOsmTask.AbstractInternalTask(boolean newLayer, java.lang.String title, ProgressMonitor progressMonitor, boolean ignoreException)
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)protected 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, Bounds bounds)