Changeset 13666 in josm for trunk/src/org


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

move getEastNorth() method from Node to INode

Location:
trunk/src/org/openstreetmap/josm/data/osm
Files:
2 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
  • trunk/src/org/openstreetmap/josm/data/osm/Node.java

    r13665 r13666  
    8686    public double lon() {
    8787        return lon;
    88     }
    89 
    90     /**
    91      * Replies the projected east/north coordinates.
    92      * <p>
    93      * Uses the {@link Main#getProjection() global projection} to project the lat/lon-coordinates.
    94      * <p>
    95      * @return the east north coordinates or {@code null} if {@link #isLatLonKnown()}
    96      * is false.
    97      */
    98     public EastNorth getEastNorth() {
    99         return getEastNorth(Main.getProjection());
    10088    }
    10189
Note: See TracChangeset for help on using the changeset viewer.