Package org.openstreetmap.josm.command
Class ChangeNodesCommand
- java.lang.Object
-
- org.openstreetmap.josm.command.Command
-
- org.openstreetmap.josm.command.AbstractNodesCommand<java.util.List<Node>>
-
- org.openstreetmap.josm.command.ChangeNodesCommand
-
- All Implemented Interfaces:
PseudoCommand
public class ChangeNodesCommand extends AbstractNodesCommand<java.util.List<Node>>
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, way
-
Fields inherited from class org.openstreetmap.josm.command.Command
IS_INCOMPLETE, IS_OK, IS_OUTSIDE
-
-
Constructor Summary
Constructors Constructor Description ChangeNodesCommand(DataSet ds, Way way, java.util.List<Node> newNodes)
Constructs a newChangeNodesCommand
.ChangeNodesCommand(Way way, java.util.List<Node> newNodes)
Constructs a newChangeNodesCommand
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDescriptionText()
Provides a description text representing this command.void
modifyWay()
-
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
-
ChangeNodesCommand
public ChangeNodesCommand(Way way, java.util.List<Node> newNodes)
Constructs a newChangeNodesCommand
.- Parameters:
way
- The way to modifynewNodes
- The new list of nodes for the given way
-
ChangeNodesCommand
public ChangeNodesCommand(DataSet ds, Way way, java.util.List<Node> newNodes)
Constructs a newChangeNodesCommand
.- Parameters:
ds
- The target data set. Must not benull
way
- The way to modifynewNodes
- The new list of nodes for the given way- Since:
- 12726
-
-
Method Detail
-
modifyWay
public void modifyWay()
- Specified by:
modifyWay
in classAbstractNodesCommand<java.util.List<Node>>
-
getDescriptionText
public java.lang.String getDescriptionText()
Description copied from interface:PseudoCommand
Provides a description text representing this command.- Returns:
- description text representing this command
-
-