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, createCalcTaskbuildActiveLayerChangeAdapter, buildLayerChangeAdapter, checkAndConfirmOutlyingOperation, destroy, getLayerManager, getShortcut, initEnabledState, installAdapters, listenToLayerChange, listenToSelectionChange, setHelpId, setTooltip, updateEnabledStateOnCurrentSelection, updateEnabledStateOnCurrentSelection, updateEnabledStateOnModifiableSelection, waitFutureprivate 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()
DownloadAlongActioncreateTask in class DownloadAlongActionprotected void updateEnabledState()
JosmActionJosmAction.updateEnabledState(Collection) to respond to changes in the collection
of selected primitives.
Default behavior is empty.updateEnabledState in class JosmActionJosmAction.updateEnabledState(Collection),
JosmAction.initEnabledState(),
JosmAction.listenToLayerChange()protected void updateEnabledState(java.util.Collection<? extends OsmPrimitive> selection)
JosmActionupdateEnabledState in class JosmActionselection - the collection of selected primitives; may be empty, but not nullJosmAction.updateEnabledState(),
JosmAction.initEnabledState(),
JosmAction.listenToSelectionChange()