Package org.openstreetmap.josm.command
Class ChangeNodesCommand
java.lang.Object
org.openstreetmap.josm.command.Command
org.openstreetmap.josm.command.AbstractNodesCommand<List<Node>>
org.openstreetmap.josm.command.ChangeNodesCommand
- All Implemented Interfaces:
PseudoCommand
Command that changes the nodes list of a way.
The same can be done with ChangeCommand, but this is more
efficient. (Needed for the duplicate node fixing
tool of the validator, when processing large data sets.)
-
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, wayFields inherited from class org.openstreetmap.josm.command.Command
IS_INCOMPLETE, IS_OK, IS_OUTSIDE -
Constructor Summary
ConstructorsConstructorDescriptionChangeNodesCommand(DataSet ds, Way way, List<Node> newNodes) Constructs a newChangeNodesCommand.ChangeNodesCommand(Way way, List<Node> newNodes) Constructs a newChangeNodesCommand. -
Method Summary
Modifier and TypeMethodDescriptionProvides a description text representing this command.voidMethods inherited from class org.openstreetmap.josm.command.AbstractNodesCommand
equals, executeCommand, fillModifiedData, getDescriptionIcon, hashCodeMethods inherited from class org.openstreetmap.josm.command.Command
checkOutlyingOrIncompleteOperation, ensurePrimitivesAreInDataset, getAffectedDataSet, getOrig, getParticipatingPrimitives, undoCommandMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.openstreetmap.josm.command.PseudoCommand
getChildren
-
Constructor Details
-
ChangeNodesCommand
Constructs a newChangeNodesCommand.- Parameters:
way- The way to modifynewNodes- The new list of nodes for the given way
-
ChangeNodesCommand
Constructs a newChangeNodesCommand.- Parameters:
ds- The target data set. Must not benullway- The way to modifynewNodes- The new list of nodes for the given way- Since:
- 12726
-
-
Method Details
-
modifyWay
- Specified by:
modifyWayin classAbstractNodesCommand<List<Node>>
-
getDescriptionText
Description copied from interface:PseudoCommandProvides a description text representing this command.- Returns:
- description text representing this command
-