Changeset 6890 in josm for trunk/src/org/openstreetmap/josm/command
- Timestamp:
- 2014-02-27T02:50:12+01:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/command
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/command/MoveCommand.java
r6881 r6890 153 153 * Save curent displacement to restore in case of some problems 154 154 */ 155 public void saveCheckpoint() { 155 public final void saveCheckpoint() { 156 156 backupX = x; 157 157 backupY = y; -
trunk/src/org/openstreetmap/josm/command/PurgeCommand.java
r6883 r6890 67 67 } 68 68 69 protected void saveIncomplete(Collection<OsmPrimitive> makeIncomplete) { 69 protected final void saveIncomplete(Collection<OsmPrimitive> makeIncomplete) { 70 70 makeIncompleteData = new Storage<PrimitiveData>(new Storage.PrimitiveIdHash()); 71 71 makeIncompleteData_byPrimId = makeIncompleteData.foreignKey(new Storage.PrimitiveIdHash()); -
trunk/src/org/openstreetmap/josm/command/RotateCommand.java
r6830 r6890 52 52 * Get angle between the horizontal axis and the line formed by the pivot and give points. 53 53 **/ 54 protected double getAngle(EastNorth currentEN) { 54 protected final double getAngle(EastNorth currentEN) { 55 55 if ( pivot == null ) 56 56 return 0.0; // should never happen by contract … … 62 62 */ 63 63 @Override 64 public void handleEvent(EastNorth currentEN) { 64 public final void handleEvent(EastNorth currentEN) { 65 65 double currentAngle = getAngle(currentEN); 66 66 rotationAngle = currentAngle - startAngle; -
trunk/src/org/openstreetmap/josm/command/ScaleCommand.java
r6296 r6890 54 54 */ 55 55 @Override 56 public void handleEvent(EastNorth currentEN) { 56 public final void handleEvent(EastNorth currentEN) { 57 57 double startAngle = Math.atan2(startEN.east()-pivot.east(), startEN.north()-pivot.north()); 58 58 double endAngle = Math.atan2(currentEN.east()-pivot.east(), currentEN.north()-pivot.north()); … … 62 62 transformNodes(); 63 63 } 64 65 64 66 65 /** -
trunk/src/org/openstreetmap/josm/command/TransformNodesCommand.java
r6830 r6890 38 38 * Stores the state of the nodes before the command. 39 39 */ 40 protected void storeOldState() { 40 protected final void storeOldState() { 41 41 for (Node n : this.nodes) { 42 42 oldStates.put(n, new OldNodeState(n));
Note:
See TracChangeset
for help on using the changeset viewer.