Ignore:
Timestamp:
2018-03-25T18:53:04+02:00 (6 years ago)
Author:
Don-vip
Message:

introduce PrimitiveRenderer to replace OsmPrimitivRenderer (now deprecated). Change NameFormatter API to support IPrimitive instead of OsmPrimitive. Enhances interfaces in consequence.

File:
1 edited

Legend:

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

    r13512 r13564  
    105105
    106106    /**
    107      * Replies the real number of nodes in this way (full number of nodes minus one if this way is closed)
    108      *
    109      * @return the real number of nodes in this way.
    110      *
    111      * @see #getNodesCount()
    112      * @see #isClosed()
    113      * @since 5847
    114      */
    115     public int getRealNodesCount() {
    116         int count = getNodesCount();
    117         return isClosed() ? count-1 : count;
    118     }
    119 
    120     /**
    121107     * Replies the node at position <code>index</code>.
    122108     *
     
    576562        }
    577563        return false;
    578     }
    579 
    580     @Override
    581     public String getDisplayName(NameFormatter formatter) {
    582         return formatter.format(this);
    583564    }
    584565
Note: See TracChangeset for help on using the changeset viewer.