Changeset 13919 in josm for trunk/src/org/openstreetmap/josm/gui/mappaint/styleelement/LineElement.java
- Timestamp:
- 2018-06-11T20:52:44+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/styleelement/LineElement.java
r13662 r13919 8 8 import java.util.Optional; 9 9 10 import org.openstreetmap.josm.data.osm.INode; 10 11 import org.openstreetmap.josm.data.osm.IPrimitive; 11 import org.openstreetmap.josm.data.osm. Node;12 import org.openstreetmap.josm.data.osm.IWay; 12 13 import org.openstreetmap.josm.data.osm.Way; 13 14 import org.openstreetmap.josm.data.osm.visitor.paint.MapPaintSettings; … … 128 129 the direction should be shown at all and not only because it's selected */ 129 130 boolean showOnlyHeadArrowOnly = showOrientation && !selected && paintSettings.isShowHeadArrowOnly(); 130 Node lastN;131 INode lastN; 131 132 132 133 Color myDashedColor = dashesBackground; … … 155 156 } 156 157 157 if (primitive instanceof Way) {158 Way w = (Way) primitive;158 if (primitive instanceof IWay) { 159 IWay<?> w = (IWay<?>) primitive; 159 160 painter.drawWay(w, myColor, myLine, myDashLine, myDashedColor, offset, showOrientation, 160 161 showOnlyHeadArrowOnly, showOneway, onewayReversed); … … 164 165 int orderNumber = 0; 165 166 lastN = null; 166 for ( Node n : w.getNodes()) {167 for (INode n : w.getNodes()) { 167 168 if (lastN != null) { 168 169 orderNumber++; … … 245 246 246 247 /** 247 * Creates a simple line with default widt .248 * Creates a simple line with default width. 248 249 * @param color The color to use 249 250 * @param isAreaEdge If this is an edge for an area. Edges are drawn at lower Z-Index. … … 259 260 c.put(Z_INDEX, -3f); 260 261 } 261 Way w = new Way(); 262 return createLine(new Environment(w, mc, "default", null)); 262 return createLine(new Environment(new Way(), mc, "default", null)); 263 263 } 264 264
Note:
See TracChangeset
for help on using the changeset viewer.