public abstract class DownloadAlongAction extends JosmAction
JosmAction.LayerChangeAdapter, JosmAction.SelectionChangeAdapterscchangeSupport, enabledACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON| Constructor and Description |
|---|
DownloadAlongAction(String name,
String iconName,
String tooltip,
Shortcut shortcut,
boolean registerInToolbar)
Constructs a new
DownloadAlongAction |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
addToDownload(Area a,
Rectangle2D r,
Collection<Rectangle2D> results,
double maxArea) |
protected static void |
confirmAndDownloadAreas(Area a,
double maxArea,
boolean osmDownload,
boolean gpxDownload,
String title,
ProgressMonitor progressMonitor)
Area "a" contains the hull that we would like to download data for.
|
destroy, getCurrentDataSet, getEditLayer, getShortcut, initEnabledState, installAdapters, setTooltip, updateEnabledState, updateEnabledStateaddPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitactionPerformedpublic DownloadAlongAction(String name, String iconName, String tooltip, Shortcut shortcut, boolean registerInToolbar)
DownloadAlongActionname - the action's text as displayed in the menuiconName - the filename of the icon to usetooltip - a longer description of the action that will be displayed in the tooltip. Please note
that html is not supported for menu actions on some platforms.shortcut - a ready-created shortcut object or null if you don't want a shortcut. But you always
do want a shortcut, remember you can always register it with group=none, so you
won't be assigned a shortcut unless the user configures one. If you pass null here,
the user CANNOT configure a shortcut for your action.registerInToolbar - register this action for the toolbar preferences?protected static void addToDownload(Area a, Rectangle2D r, Collection<Rectangle2D> results, double maxArea)
protected static void confirmAndDownloadAreas(Area a, double maxArea, boolean osmDownload, boolean gpxDownload, String title, ProgressMonitor progressMonitor)
a - download area hullmaxArea - maximum area size for a single downloadosmDownload - Set to true if OSM data should be downloadedgpxDownload - Set to true if GPX data should be downloadedtitle - the title string for the confirmation dialogprogressMonitor - the progress monitor