Changeset 12669 in josm for trunk/src/org/openstreetmap/josm/data/coor
- Timestamp:
- 2017-08-27T00:17:49+02:00 (7 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/coor
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/coor/EastNorth.java
r12375 r12669 1 1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm.data.coor; 3 4 import org.openstreetmap.gui.jmapviewer.JMapViewer;5 import org.openstreetmap.gui.jmapviewer.Projected;6 import org.openstreetmap.gui.jmapviewer.interfaces.IProjected;7 3 8 4 /** … … 29 25 public EastNorth(double east, double north) { 30 26 super(east, north); 31 }32 33 /**34 * Constructs a new {@code EastNorth} from {@link IProjected}.35 * @param p projected coordinates36 */37 public EastNorth(IProjected p) {38 super(p.getEast(), p.getNorth());39 27 } 40 28 … … 188 176 } 189 177 190 /**191 * Converts this to a {@link IProjected} instance to be used in the {@link JMapViewer}192 * @return The projected193 */194 public IProjected toProjected() {195 return new Projected(east(), north());196 }197 198 178 @Override 199 179 public String toString() { -
trunk/src/org/openstreetmap/josm/data/coor/LatLon.java
r12620 r12669 23 23 import java.util.regex.Pattern; 24 24 25 import org.openstreetmap.gui.jmapviewer.interfaces.ICoordinate;26 25 import org.openstreetmap.josm.Main; 27 26 import org.openstreetmap.josm.data.Bounds; … … 294 293 } 295 294 296 /**297 * Constructs a new object for the given coordinate298 * @param coor the coordinate299 */300 public LatLon(ICoordinate coor) {301 this(coor.getLat(), coor.getLon());302 }303 304 295 @Override 305 296 public double lat() { … … 566 557 return Double.compare(that.x, x) == 0 && 567 558 Double.compare(that.y, y) == 0; 568 }569 570 /**571 * Converts this latitude/longitude to an instance of {@link ICoordinate}.572 * @return a {@link ICoordinate} instance of this latitude/longitude573 */574 public ICoordinate toCoordinate() {575 return new org.openstreetmap.gui.jmapviewer.Coordinate(lat(), lon());576 559 } 577 560
Note:
See TracChangeset
for help on using the changeset viewer.