Changeset 35681 in osm for applications
- Timestamp:
- 2021-01-11T09:57:43+01:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/utilsplugin2/src/org/openstreetmap/josm/plugins/utilsplugin2/replacegeometry/ReplaceGeometryUtils.java
r35674 r35681 55 55 /** 56 56 * Replace new or uploaded object with new object 57 * @param firstObject an object 58 * @param secondObject another object 57 59 * @return (in case of success) a command to update the geometry of one primitive and remove the other 58 60 */ … … 97 99 /** 98 100 * Replace a new or uploaded node with a new node 101 * @param firstNode a node 102 * @param secondNode another node 99 103 * @return (in case of success) a command to update the geometry of one primitive and remove the other 100 104 */ … … 112 116 /** 113 117 * 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 114 121 */ 115 122 public static ReplaceGeometryCommand buildReplaceNodeCommand(Node subjectNode, Node referenceNode) { … … 137 144 * @param subjectNode node to be replaced 138 145 * @param referenceObject object with greater spatial quality 146 * @return command to replace 139 147 */ 140 148 public static ReplaceGeometryCommand buildUpgradeNodeCommand(Node subjectNode, OsmPrimitive referenceObject) { … … 414 422 * Checks if a way has at least one important node (e.g. interesting tag, 415 423 * 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 416 427 */ 417 428 static boolean hasImportantNode(Way geometry, Way way) { … … 475 486 /** 476 487 * 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 477 490 * @return null if there is no such node. 478 491 */
Note:
See TracChangeset
for help on using the changeset viewer.