Changeset 35681 in osm for applications


Ignore:
Timestamp:
2021-01-11T09:57:43+01:00 (3 years ago)
Author:
GerdP
Message:

improve javadoc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/utilsplugin2/src/org/openstreetmap/josm/plugins/utilsplugin2/replacegeometry/ReplaceGeometryUtils.java

    r35674 r35681  
    5555    /**
    5656     * Replace new or uploaded object with new object
     57     * @param firstObject an object
     58     * @param secondObject another object
    5759     * @return (in case of success) a command to update the geometry of one primitive and remove the other
    5860     */
     
    9799    /**
    98100     * Replace a new or uploaded node with a new node
     101     * @param firstNode a node
     102     * @param secondNode another node
    99103     * @return (in case of success) a command to update the geometry of one primitive and remove the other
    100104     */
     
    112116    /**
    113117     * Replace a node with another node (similar to MergeNodesAction)
     118     * @param subjectNode node to be replaced
     119     * @param referenceNode node with greater spatial quality
     120     * @return command to replace node or null if user cancelled
    114121     */
    115122    public static ReplaceGeometryCommand buildReplaceNodeCommand(Node subjectNode, Node referenceNode) {
     
    137144     * @param subjectNode node to be replaced
    138145     * @param referenceObject object with greater spatial quality
     146     * @return command to replace
    139147     */
    140148    public static ReplaceGeometryCommand buildUpgradeNodeCommand(Node subjectNode, OsmPrimitive referenceObject) {
     
    414422     * Checks if a way has at least one important node (e.g. interesting tag,
    415423     * role membership), and thus cannot be safely modified.
     424     * @param geometry the new geometry for the replaced way
     425     * @param way the way that should be replaced
     426     * @return true if at least one node is not in {@code geometry} but is important
    416427     */
    417428    static boolean hasImportantNode(Way geometry, Way way) {
     
    475486    /**
    476487     * Find node from the collection which is nearest to <tt>node</tt>. Max distance is taken in consideration.
     488     * @param node the node
     489     * @param nodes the collection
    477490     * @return null if there is no such node.
    478491     */
Note: See TracChangeset for help on using the changeset viewer.