static class DownloadWmsAlongTrackAction.PrecacheWmsTask extends PleaseWaitRunnable
Modifier and Type | Field and Description |
---|---|
private AbstractTileSourceLayer<? extends AbstractTMSTileSource> |
layer |
private java.util.List<LatLon> |
points |
private AbstractTileSourceLayer.PrecacheTask |
precacheTask |
progressMonitor
Modifier | Constructor and Description |
---|---|
protected |
PrecacheWmsTask(AbstractTileSourceLayer<? extends AbstractTMSTileSource> layer,
java.util.List<LatLon> points) |
Modifier and Type | Method and Description |
---|---|
protected void |
cancel()
User pressed cancel button.
|
ProgressTaskId |
canRunInBackground()
Task can run in background if returned value != null.
|
protected void |
finish()
Finish up the data work.
|
protected void |
realRun()
Called in the worker thread to do the actual work.
|
afterFinish, getProgressMonitor, operationCanceled, run
private final AbstractTileSourceLayer<? extends AbstractTMSTileSource> layer
private AbstractTileSourceLayer.PrecacheTask precacheTask
protected PrecacheWmsTask(AbstractTileSourceLayer<? extends AbstractTMSTileSource> layer, java.util.List<LatLon> points)
protected void realRun() throws org.xml.sax.SAXException, java.io.IOException, OsmTransferException
PleaseWaitRunnable
realRun
in class PleaseWaitRunnable
org.xml.sax.SAXException
- if a SAX error occursjava.io.IOException
- if an I/O error occursOsmTransferException
- if a communication error with the OSM server occursprotected void finish()
PleaseWaitRunnable
finish
in class PleaseWaitRunnable
protected void cancel()
PleaseWaitRunnable
cancel
in class PleaseWaitRunnable
public ProgressTaskId canRunInBackground()
PleaseWaitRunnable
canRunInBackground
in class PleaseWaitRunnable