public abstract class DownloadAlongAction extends JosmAction
sc| Constructor and Description |
|---|
DownloadAlongAction(java.lang.String name,
java.lang.String iconName,
java.lang.String tooltip,
Shortcut shortcut,
boolean registerInToolbar)
Constructs a new
DownloadAlongAction |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
addToDownload(java.awt.geom.Area a,
java.awt.geom.Rectangle2D r,
java.util.Collection<java.awt.geom.Rectangle2D> results,
double maxArea) |
protected static void |
confirmAndDownloadAreas(java.awt.geom.Area a,
double maxArea,
boolean osmDownload,
boolean gpxDownload,
java.lang.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, setEnabledpublic DownloadAlongAction(java.lang.String name, java.lang.String iconName, java.lang.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(java.awt.geom.Area a, java.awt.geom.Rectangle2D r, java.util.Collection<java.awt.geom.Rectangle2D> results, double maxArea)
protected static void confirmAndDownloadAreas(java.awt.geom.Area a, double maxArea, boolean osmDownload, boolean gpxDownload, java.lang.String title, ProgressMonitor progressMonitor)