public class MapRectifierWMSmenuAction extends JosmAction
Modifier and Type | Class and Description |
---|---|
static class |
MapRectifierWMSmenuAction.RectifierService
Class that bundles all required information of a rectifier service
|
JosmAction.ActiveLayerChangeAdapter, JosmAction.LayerChangeAdapter, JosmAction.SelectionChangeAdapter
Modifier and Type | Field and Description |
---|---|
private java.util.List<MapRectifierWMSmenuAction.RectifierService> |
services
List of available rectifier services.
|
sc
Constructor and Description |
---|
MapRectifierWMSmenuAction()
Constructs a new
MapRectifierWMSmenuAction . |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
private static void |
addWMSLayer(java.lang.String title,
java.lang.String url)
Adds a WMS Layer with given title and URL
|
protected void |
updateEnabledState()
Override in subclasses to update the enabled state of the action when
something in the JOSM state changes, i.e.
|
checkAndConfirmOutlyingOperation, destroy, getLayerManager, getShortcut, initEnabledState, installAdapters, listenToLayerChange, listenToSelectionChange, setTooltip, updateEnabledState, updateEnabledStateOnCurrentSelection, updateEnabledStateOnCurrentSelection, updateEnabledStateOnModifiableSelection, waitFuture
private final transient java.util.List<MapRectifierWMSmenuAction.RectifierService> services
public MapRectifierWMSmenuAction()
MapRectifierWMSmenuAction
.public void actionPerformed(java.awt.event.ActionEvent e)
private static void addWMSLayer(java.lang.String title, java.lang.String url)
title
- Name of the layer as it will shop up in the layer managerurl
- URL to the WMS serverjava.lang.IllegalStateException
- if imagery time is neither HTML nor WMSprotected 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()