Package org.openstreetmap.josm.command
Class RemoveNodesCommand
- java.lang.Object
-
- org.openstreetmap.josm.command.Command
-
- org.openstreetmap.josm.command.AbstractNodesCommand<java.util.Set<Node>>
-
- org.openstreetmap.josm.command.RemoveNodesCommand
-
- All Implemented Interfaces:
PseudoCommand
public class RemoveNodesCommand extends AbstractNodesCommand<java.util.Set<Node>>
Command that removes a set of nodes from a way. The same can be done with ChangeNodesCommand, but this is more efficient. (Needed for the tool to disconnect nodes from ways.)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstreetmap.josm.command.Command
Command.OldNodeState
-
-
Field Summary
-
Fields inherited from class org.openstreetmap.josm.command.AbstractNodesCommand
cmdNodes, way
-
Fields inherited from class org.openstreetmap.josm.command.Command
IS_INCOMPLETE, IS_OK, IS_OUTSIDE
-
-
Constructor Summary
Constructors Constructor Description RemoveNodesCommand(DataSet ds, Way way, java.util.Set<Node> rmNodes)Constructs a newRemoveNodesCommand.RemoveNodesCommand(Way way, java.util.Set<Node> rmNodes)Constructs a newRemoveNodesCommand.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDescriptionText()Provides a description text representing this command.protected voidmodifyWay()-
Methods inherited from class org.openstreetmap.josm.command.AbstractNodesCommand
equals, executeCommand, fillModifiedData, getDescriptionIcon, hashCode
-
Methods inherited from class org.openstreetmap.josm.command.Command
checkOutlyingOrIncompleteOperation, ensurePrimitivesAreInDataset, getAffectedDataSet, getOrig, getParticipatingPrimitives, undoCommand
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openstreetmap.josm.command.PseudoCommand
getChildren
-
-
-
-
Constructor Detail
-
RemoveNodesCommand
public RemoveNodesCommand(Way way, java.util.Set<Node> rmNodes)
Constructs a newRemoveNodesCommand.- Parameters:
way- The way to modify. Must not be null, and belong to a data setrmNodes- The set of nodes to remove- Since:
- 15013
-
RemoveNodesCommand
public RemoveNodesCommand(DataSet ds, Way way, java.util.Set<Node> rmNodes)
Constructs a newRemoveNodesCommand.- Parameters:
ds- The target data set. Must not benullway- The way to modify. Must not be null, and belong to a data setrmNodes- The list of nodes to remove- Since:
- 15013
-
-
Method Detail
-
modifyWay
protected void modifyWay()
- Specified by:
modifyWayin classAbstractNodesCommand<java.util.Set<Node>>
-
getDescriptionText
public java.lang.String getDescriptionText()
Description copied from interface:PseudoCommandProvides a description text representing this command.- Returns:
- description text representing this command
-
-