Changeset 3266 in josm for trunk/src/org/openstreetmap/josm/command
- Timestamp:
- 2010-05-22T00:58:27+02:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/command/MoveCommand.java
r3262 r3266 12 12 import javax.swing.JLabel; 13 13 14 import org.openstreetmap.josm.data.coor.CachedLatLon; 15 import org.openstreetmap.josm.data.coor.EastNorth; 14 16 import org.openstreetmap.josm.data.coor.LatLon; 15 17 import org.openstreetmap.josm.data.osm.Node; … … 55 57 this(Collections.singleton(osm), x, y); 56 58 } 59 60 public MoveCommand(Node node, LatLon position) { 61 this(Collections.singleton((OsmPrimitive) node), node.getEastNorth().sub(new CachedLatLon(position).getEastNorth())); 62 } 63 64 public MoveCommand(Collection<OsmPrimitive> objects, EastNorth offset) { 65 this(objects, offset.getX(), offset.getY()); 66 } 67 57 68 /** 58 69 * Create a MoveCommand and assign the initial object set and movement vector.
Note: See TracChangeset
for help on using the changeset viewer.