Ignore:
Timestamp:
2017-08-27T00:17:49+02:00 (3 years ago)
Author:
Don-vip
Message:

see #15182 - remove dependence on JMapViewer for package data.coor (only useful for imagery)

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  
    11// License: GPL. For details, see LICENSE file.
    22package 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;
    73
    84/**
     
    2925    public EastNorth(double east, double north) {
    3026        super(east, north);
    31     }
    32 
    33     /**
    34      * Constructs a new {@code EastNorth} from {@link IProjected}.
    35      * @param p projected coordinates
    36      */
    37     public EastNorth(IProjected p) {
    38         super(p.getEast(), p.getNorth());
    3927    }
    4028
     
    188176    }
    189177
    190     /**
    191      * Converts this to a {@link IProjected} instance to be used in the {@link JMapViewer}
    192      * @return The projected
    193      */
    194     public IProjected toProjected() {
    195         return new Projected(east(), north());
    196     }
    197 
    198178    @Override
    199179    public String toString() {
  • trunk/src/org/openstreetmap/josm/data/coor/LatLon.java

    r12620 r12669  
    2323import java.util.regex.Pattern;
    2424
    25 import org.openstreetmap.gui.jmapviewer.interfaces.ICoordinate;
    2625import org.openstreetmap.josm.Main;
    2726import org.openstreetmap.josm.data.Bounds;
     
    294293    }
    295294
    296     /**
    297      * Constructs a new object for the given coordinate
    298      * @param coor the coordinate
    299      */
    300     public LatLon(ICoordinate coor) {
    301         this(coor.getLat(), coor.getLon());
    302     }
    303 
    304295    @Override
    305296    public double lat() {
     
    566557        return Double.compare(that.x, x) == 0 &&
    567558               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/longitude
    573      */
    574     public ICoordinate toCoordinate() {
    575         return new org.openstreetmap.gui.jmapviewer.Coordinate(lat(), lon());
    576559    }
    577560
Note: See TracChangeset for help on using the changeset viewer.