Changeset 12669 in josm for trunk/src/org/openstreetmap/josm/data/coor/EastNorth.java
- Timestamp:
- 2017-08-27T00:17:49+02:00 (7 years ago)
- File:
-
- 1 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() {
Note:
See TracChangeset
for help on using the changeset viewer.