public class DownloadAlongWayAction extends DownloadAlongAction
JosmAction.ActiveLayerChangeAdapter, JosmAction.LayerChangeAdapter, JosmAction.SelectionChangeAdapter
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
PREF_DOWNLOAD_ALONG_WAY_AREA |
private static java.lang.String |
PREF_DOWNLOAD_ALONG_WAY_DISTANCE |
private static java.lang.String |
PREF_DOWNLOAD_ALONG_WAY_GPS |
private static java.lang.String |
PREF_DOWNLOAD_ALONG_WAY_OSM |
sc
Constructor and Description |
---|
DownloadAlongWayAction()
Create new
DownloadAlongWayAction . |
Modifier and Type | Method and Description |
---|---|
protected PleaseWaitRunnable |
createTask()
Sub classes must override this method.
|
protected void |
updateEnabledState()
Override in subclasses to update the enabled state of the action when
something in the JOSM state changes, i.e.
|
protected void |
updateEnabledState(java.util.Collection<? extends OsmPrimitive> selection)
Override in subclasses to update the enabled state of the action if the
collection of selected primitives changes.
|
actionPerformed, addToDownload, calcBetweenPoints, confirmAndDownloadAreas, createCalcTask
checkAndConfirmOutlyingOperation, destroy, getLayerManager, getShortcut, initEnabledState, installAdapters, listenToLayerChange, listenToSelectionChange, setHelpId, setTooltip, updateEnabledStateOnCurrentSelection, updateEnabledStateOnCurrentSelection, updateEnabledStateOnModifiableSelection, waitFuture
private static final java.lang.String PREF_DOWNLOAD_ALONG_WAY_DISTANCE
private static final java.lang.String PREF_DOWNLOAD_ALONG_WAY_AREA
private static final java.lang.String PREF_DOWNLOAD_ALONG_WAY_OSM
private static final java.lang.String PREF_DOWNLOAD_ALONG_WAY_GPS
public DownloadAlongWayAction()
DownloadAlongWayAction
.protected PleaseWaitRunnable createTask()
DownloadAlongAction
createTask
in class DownloadAlongAction
protected void updateEnabledState()
JosmAction
JosmAction.updateEnabledState(Collection)
to respond to changes in the collection
of selected primitives.
Default behavior is empty.updateEnabledState
in class JosmAction
JosmAction.updateEnabledState(Collection)
,
JosmAction.initEnabledState()
,
JosmAction.listenToLayerChange()
protected void updateEnabledState(java.util.Collection<? extends OsmPrimitive> selection)
JosmAction
updateEnabledState
in class JosmAction
selection
- the collection of selected primitives; may be empty, but not nullJosmAction.updateEnabledState()
,
JosmAction.initEnabledState()
,
JosmAction.listenToSelectionChange()