Ignore:
Timestamp:
2018-04-23T22:07:31+02:00 (7 years ago)
Author:
Don-vip
Message:

move getEastNorth() method from Node to INode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/INode.java

    r13665 r13666  
    22package org.openstreetmap.josm.data.osm;
    33
     4import org.openstreetmap.josm.Main;
    45import org.openstreetmap.josm.data.coor.EastNorth;
    56import org.openstreetmap.josm.data.coor.ILatLon;
     
    2526
    2627    /**
     28     * Replies the projected east/north coordinates.
     29     * <p>
     30     * Uses the {@link Main#getProjection() global projection} to project the lat/lon-coordinates.
     31     * <p>
     32     * @return the east north coordinates or {@code null} if {@link #isLatLonKnown()} is false.
     33     * @since 13666
     34     */
     35    default EastNorth getEastNorth() {
     36        return getEastNorth(Main.getProjection());
     37    }
     38
     39    /**
    2740     * Sets east/north coordinates of this node.
    2841     * @param eastNorth east/north coordinates of this node
Note: See TracChangeset for help on using the changeset viewer.