Changeset 12287 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2017-06-01T00:02:26+02:00 (7 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/actions
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/SimplifyWayAction.java
r12171 r12287 137 137 * in order to simplify the way. 138 138 */ 139 protected boolean isRequiredNode(Way way, Node node) {139 protected static boolean isRequiredNode(Way way, Node node) { 140 140 int frequency = Collections.frequency(way.getNodes(), node); 141 141 if ((way.getNode(0) == node) && (way.getNode(way.getNodesCount()-1) == node)) { … … 174 174 * @since 6411 175 175 */ 176 public SequenceCommand simplifyWay(Way w, double threshold) {176 public static SequenceCommand simplifyWay(Way w, double threshold) { 177 177 int lower = 0; 178 178 int i = 0; … … 234 234 * @param simplifiedNodes list that will contain resulting nodes 235 235 */ 236 protected void buildSimplifiedNodeList(List<Node> wnew, int from, int to, double threshold, List<Node> simplifiedNodes) {236 protected static void buildSimplifiedNodeList(List<Node> wnew, int from, int to, double threshold, List<Node> simplifiedNodes) { 237 237 238 238 Node fromN = wnew.get(from); -
trunk/src/org/openstreetmap/josm/actions/SplitWayAction.java
r12279 r12287 491 491 * i.e. {@code Main.main.undoredo.add(result.getCommand())}. 492 492 * 493 * @param layer the layer which the way belongs to. Must not be null.493 * @param layer the layer which the way belongs to. 494 494 * @param way the way to split. Must not be null. 495 495 * @param wayChunks the list of way chunks into the way is split. Must not be null. … … 512 512 * i.e. {@code Main.main.undoredo.add(result.getCommand())}. 513 513 * 514 * @param layer the layer which the way belongs to. Must not be null.514 * @param layer the layer which the way belongs to. 515 515 * @param way the way to split. Must not be null. 516 516 * @param wayChunks the list of way chunks into the way is split. Must not be null. … … 733 733 * Replies null if the way couldn't be split at the given nodes. 734 734 * 735 * @param layer the layer which the way belongs to. Must not be null.735 * @param layer the layer which the way belongs to. 736 736 * @param way the way to split. Must not be null. 737 737 * @param atNodes the list of nodes where the way is split. Must not be null.
Note:
See TracChangeset
for help on using the changeset viewer.