Changeset 11144 in josm for trunk/src/org/openstreetmap/josm/data/osm/visitor/paint
- Timestamp:
- 2016-10-18T13:04:35+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java
r11100 r11144 451 451 } 452 452 453 private void displaySegments( Path2Dpath, Path2D orientationArrows, Path2D onewayArrows, Path2D onewayArrowsCasing,453 private void displaySegments(MapViewPath path, Path2D orientationArrows, Path2D onewayArrows, Path2D onewayArrowsCasing, 454 454 Color color, BasicStroke line, BasicStroke dashes, Color dashedColor) { 455 455 g.setColor(isInactiveMode ? inactiveColor : color); … … 457 457 g.setStroke(line); 458 458 } 459 g.draw(path );459 g.draw(path.computeClippedLine(g.getStroke())); 460 460 461 461 if (!isInactiveMode && useStrokes && dashes != null) { 462 462 g.setColor(dashedColor); 463 463 g.setStroke(dashes); 464 g.draw(path );464 g.draw(path.computeClippedLine(dashes)); 465 465 } 466 466 … … 1030 1030 * @param line line style 1031 1031 */ 1032 private void drawPathHighlight( Path2Dpath, BasicStroke line) {1032 private void drawPathHighlight(MapViewPath path, BasicStroke line) { 1033 1033 if (path == null) 1034 1034 return;
Note:
See TracChangeset
for help on using the changeset viewer.