Changeset 12161 in josm for trunk/src/org/openstreetmap/josm/gui/draw
- Timestamp:
- 2017-05-15T15:43:30+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/draw/MapViewPath.java
r11817 r12161 9 9 10 10 import org.openstreetmap.josm.data.coor.EastNorth; 11 import org.openstreetmap.josm.data. osm.Node;11 import org.openstreetmap.josm.data.coor.ILatLon; 12 12 import org.openstreetmap.josm.gui.MapView; 13 13 import org.openstreetmap.josm.gui.MapViewState; … … 57 57 * @return this for easy chaining. 58 58 */ 59 public MapViewPath moveTo( Noden) {60 moveTo(n.getEastNorth( ));59 public MapViewPath moveTo(ILatLon n) { 60 moveTo(n.getEastNorth(state.getProjecting())); 61 61 return this; 62 62 } … … 85 85 * @return this for easy chaining. 86 86 */ 87 public MapViewPath lineTo( Noden) {88 lineTo(n.getEastNorth( ));87 public MapViewPath lineTo(ILatLon n) { 88 lineTo(n.getEastNorth(state.getProjecting())); 89 89 return this; 90 90 } … … 115 115 * @return this for easy chaining. 116 116 */ 117 public MapViewPath shapeAround( Nodep1, SymbolShape symbol, double size) {118 shapeAround(p1.getEastNorth( ), symbol, size);117 public MapViewPath shapeAround(ILatLon p1, SymbolShape symbol, double size) { 118 shapeAround(p1.getEastNorth(state.getProjecting()), symbol, size); 119 119 return this; 120 120 } … … 144 144 * @return this for easy chaining. 145 145 */ 146 public MapViewPath append(Iterable< Node> nodes, boolean connect) {146 public MapViewPath append(Iterable<? extends ILatLon> nodes, boolean connect) { 147 147 appendWay(nodes, connect, false); 148 148 return this; … … 155 155 * @return this for easy chaining. 156 156 */ 157 public MapViewPath appendClosed(Iterable< Node> nodes, boolean connect) {157 public MapViewPath appendClosed(Iterable<? extends ILatLon> nodes, boolean connect) { 158 158 appendWay(nodes, connect, true); 159 159 return this; 160 160 } 161 161 162 private void appendWay(Iterable< Node> nodes, boolean connect, boolean close) {162 private void appendWay(Iterable<? extends ILatLon> nodes, boolean connect, boolean close) { 163 163 boolean useMoveTo = !connect; 164 Nodefirst = null;165 for ( Noden : nodes) {164 ILatLon first = null; 165 for (ILatLon n : nodes) { 166 166 if (useMoveTo) { 167 167 moveTo(n);
Note:
See TracChangeset
for help on using the changeset viewer.