Changeset 12726 in josm for trunk/src/org/openstreetmap/josm/command/MoveCommand.java
- Timestamp:
- 2017-09-04T23:45:49+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/command/MoveCommand.java
r12348 r12726 9 9 import java.util.LinkedList; 10 10 import java.util.List; 11 import java.util.NoSuchElementException; 11 12 import java.util.Objects; 12 13 … … 84 85 /** 85 86 * Constructs a new {@code MoveCommand} and assign the initial object set and movement vector. 86 * @param objects The primitives to move 87 * @param objects The primitives to move. Must neither be null nor empty. Objects must belong to a data set 87 88 * @param x X difference movement. Coordinates are in northern/eastern 88 89 * @param y Y difference movement. Coordinates are in northern/eastern 90 * @throws NullPointerException if objects is null or contain null item 91 * @throws NoSuchElementException if objects is empty 89 92 */ 90 93 public MoveCommand(Collection<OsmPrimitive> objects, double x, double y) { 94 super(objects.iterator().next().getDataSet()); 91 95 startEN = null; 92 96 saveCheckpoint(); // (0,0) displacement will be saved
Note:
See TracChangeset
for help on using the changeset viewer.