- Timestamp:
- 2016-12-15T07:31:46+01:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/JoinAreasAction.java
r11376 r11402 98 98 99 99 public static class Multipolygon { 100 public Way outerWay; 101 public List<Way> innerWays; 102 100 private final Way outerWay; 101 private final List<Way> innerWays; 102 103 /** 104 * Constructs a new {@code Multipolygon}. 105 * @param way outer way 106 */ 103 107 public Multipolygon(Way way) { 104 108 outerWay = way; 105 109 innerWays = new ArrayList<>(); 110 } 111 112 /** 113 * Returns the outer way. 114 * @return the outer way 115 */ 116 public final Way getOuterWay() { 117 return outerWay; 118 } 119 120 /** 121 * Returns the inner ways. 122 * @return the inner ways 123 */ 124 public final List<Way> getInnerWays() { 125 return innerWays; 106 126 } 107 127 } … … 1239 1259 /** 1240 1260 * Joins the lists of ways. 1241 * @param polygon The list of outer ways that belong to that multigon. 1261 * @param polygon The list of outer ways that belong to that multipolygon. 1242 1262 * @return The newly created outer way 1243 1263 * @throws UserCancelException if user cancels the operation -
trunk/src/org/openstreetmap/josm/tools/RightAndLefthandTraffic.java
r11376 r11402 113 113 if (result.hasChanges()) { 114 114 for (Multipolygon mp : result.getPolygons()) { 115 optimizedWays.add(mp. outerWay);115 optimizedWays.add(mp.getOuterWay()); 116 116 } 117 117 }
Note:
See TracChangeset
for help on using the changeset viewer.