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
|
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 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.
|
destroy, getCurrentDataSet, getEditLayer, getShortcut, initEnabledState, installAdapters, setTooltip, updateEnabledState
private final java.util.List<MapRectifierWMSmenuAction.RectifierService> services
public MapRectifierWMSmenuAction()
MapRectifierWMSmenuAction
.public void actionPerformed(java.awt.event.ActionEvent e)
private 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 serverprotected 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()