public abstract class DownloadAlongAction extends JosmAction
sc
changeSupport, enabled
ACCELERATOR_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 max_area) |
protected static void |
confirmAndDownloadAreas(Area a,
double max_area,
boolean osmDownload,
boolean gpxDownload,
String title,
ProgressMonitor progressMonitor)
Area "a" contains the hull that we would like to download data for. however we
can only download rectangles, so the following is an attempt at finding a number of
rectangles to download.
|
destroy, getCurrentDataSet, getEditLayer, getShortcut, initEnabledState, installAdapters, setTooltip, updateEnabledState, updateEnabledState
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
actionPerformed
public DownloadAlongAction(String name, String iconName, String tooltip, Shortcut shortcut, boolean registerInToolbar)
DownloadAlongAction
name
- 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 max_area)
protected static void confirmAndDownloadAreas(Area a, double max_area, boolean osmDownload, boolean gpxDownload, String title, ProgressMonitor progressMonitor)