Changeset 17632 in josm
- Timestamp:
- 2021-03-21T23:03:04+01:00 (4 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java
r17421 r17632 881 881 return; // Don't create zero length way segments. 882 882 883 showStatusInfo( -1, -1, -1, snapHelper.isSnapOn());883 showStatusInfo(Double.NaN, -1, -1, snapHelper.isSnapOn()); 884 884 885 885 double curHdg = Utils.toDegrees(getCurrentBaseNode().getEastNorth() -
trunk/src/org/openstreetmap/josm/actions/mapmode/DrawSnapHelper.java
r14149 r17632 341 341 EastNorth p0 = drawAction.getCurrentBaseNode().getEastNorth(); 342 342 EastNorth snapPoint = currentEN; 343 double angle = -1;343 double angle = Double.NaN; 344 344 345 345 double activeBaseHeading = (customBaseHeading >= 0) ? customBaseHeading : baseHeading; -
trunk/src/org/openstreetmap/josm/actions/mapmode/SelectAction.java
r17473 r17632 59 59 import org.openstreetmap.josm.tools.PlatformManager; 60 60 import org.openstreetmap.josm.tools.Shortcut; 61 import org.openstreetmap.josm.tools.Utils; 61 62 62 63 /** … … 768 769 if (doesImpactStatusLine(affectedNodes, ways)) { 769 770 MainApplication.getMap().statusLine.setDist(ways); 771 } 772 if (c instanceof RotateCommand) { 773 double angle = Utils.toDegrees(((RotateCommand) c).getRotationAngle()); 774 MainApplication.getMap().statusLine.setAngle(angle); 775 } else if (c instanceof ScaleCommand) { 776 // U+00D7 MULTIPLICATION SIGN 777 String angle = String.format("%.2f", ((ScaleCommand) c).getScalingFactor()) + " \u00d7"; 778 MainApplication.getMap().statusLine.setAngleText(angle); 770 779 } 771 780 return true; -
trunk/src/org/openstreetmap/josm/command/RotateCommand.java
r17333 r17632 79 79 80 80 /** 81 * Returns the rotation angle. 82 * @return The rotation angle 83 */ 84 public double getRotationAngle() { 85 return rotationAngle; 86 } 87 88 /** 81 89 * Rotate nodes. 82 90 */ -
trunk/src/org/openstreetmap/josm/command/ScaleCommand.java
r17333 r17632 75 75 76 76 /** 77 * Returns the scaling factor. 78 * @return The scaling factor 79 */ 80 public double getScalingFactor() { 81 return scalingFactor; 82 } 83 84 /** 77 85 * Scale nodes. 78 86 */ -
trunk/src/org/openstreetmap/josm/gui/MapStatus.java
r17585 r17632 1085 1085 1086 1086 /** 1087 * Sets the angle to display in the angle panel. NaN yields "--". 1088 * @param a The angle 1089 */ 1090 public void setAngle(double a) { 1091 angleText.setText(!Double.isFinite(a) ? "--" : DECIMAL_FORMAT.format(a) + " \u00B0"); 1092 } 1093 1094 /** 1087 1095 * Sets the angle to display in the angle panel 1088 * @param a The angle1089 */ 1090 public void setAngle (double a) {1091 angleText.setText( a < 0 ? "--" : DECIMAL_FORMAT.format(a) + " \u00B0");1096 * @param text The angle text 1097 */ 1098 public void setAngleText(String text) { 1099 angleText.setText(text); 1092 1100 } 1093 1101
Note:
See TracChangeset
for help on using the changeset viewer.