public class CombineWayAction extends JosmAction
| Modifier and Type | Class and Description |
|---|---|
static class |
CombineWayAction.NodeGraph |
static class |
CombineWayAction.NodePair
A pair of nodes.
|
| Modifier and Type | Field and Description |
|---|---|
private static BooleanProperty |
PROP_REVERSE_WAY |
sc| Constructor and Description |
|---|
CombineWayAction()
Constructs a new
CombineWayAction. |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent event) |
static Pair<Way,Command> |
combineWaysWorker(java.util.Collection<Way> ways) |
protected static boolean |
confirmChangeDirectionOfWays() |
protected static Way |
getTargetWay(java.util.Collection<Way> combinedWays) |
protected void |
updateEnabledState()
Override in subclasses to update the enabled state of the action when
something in the JOSM state changes, i.e.
|
protected void |
updateEnabledState(java.util.Collection<? extends OsmPrimitive> selection)
Override in subclasses to update the enabled state of the action if the
collection of selected primitives changes.
|
protected static void |
warnCombiningImpossible() |
destroy, getCurrentDataSet, getEditLayer, getShortcut, initEnabledState, installAdapters, setTooltipprivate static final BooleanProperty PROP_REVERSE_WAY
public CombineWayAction()
CombineWayAction.protected static boolean confirmChangeDirectionOfWays()
protected static void warnCombiningImpossible()
protected static Way getTargetWay(java.util.Collection<Way> combinedWays)
public static Pair<Way,Command> combineWaysWorker(java.util.Collection<Way> ways) throws UserCancelException
ways - UserCancelExceptionpublic void actionPerformed(java.awt.event.ActionEvent event)
protected void updateEnabledState()
JosmActionJosmAction.updateEnabledState(Collection) to respond to changes in the collection
of selected primitives.
Default behavior is empty.updateEnabledState in class JosmActionJosmAction.updateEnabledState(Collection),
JosmAction.initEnabledState()protected void updateEnabledState(java.util.Collection<? extends OsmPrimitive> selection)
JosmActionupdateEnabledState in class JosmActionselection - the collection of selected primitives; may be empty, but not nullJosmAction.updateEnabledState(),
JosmAction.initEnabledState()