Changeset 10875 in josm for trunk/src/org/openstreetmap/josm/data/osm/visitor/paint
- Timestamp:
- 2016-08-22T21:16:36+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/osm/visitor/paint
- Files:
-
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/ArrowPaintHelper.java
r10829 r10875 3 3 4 4 import org.openstreetmap.josm.gui.MapViewState.MapViewPoint; 5 import org.openstreetmap.josm.gui.draw.MapPath2D; 5 6 import org.openstreetmap.josm.tools.Utils; 6 7 -
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java
r10856 r10875 21 21 import java.awt.font.TextLayout; 22 22 import java.awt.geom.AffineTransform; 23 import java.awt.geom.GeneralPath;24 23 import java.awt.geom.Path2D; 25 24 import java.awt.geom.Point2D; … … 63 62 import org.openstreetmap.josm.gui.MapViewState.MapViewPoint; 64 63 import org.openstreetmap.josm.gui.NavigatableComponent; 64 import org.openstreetmap.josm.gui.draw.MapPath2D; 65 import org.openstreetmap.josm.gui.draw.MapViewPath; 65 66 import org.openstreetmap.josm.gui.mappaint.ElemStyles; 66 67 import org.openstreetmap.josm.gui.mappaint.MapPaintStyles; … … 1392 1393 // only highlight the segment if the way itself is not highlighted 1393 1394 if (!way.isHighlighted() && highlightWaySegments != null) { 1394 GeneralPath highlightSegs = null;1395 MapViewPath highlightSegs = null; 1395 1396 for (WaySegment ws : highlightWaySegments) { 1396 1397 if (ws.way != way || ws.lowerIndex < offset) { … … 1398 1399 } 1399 1400 if (highlightSegs == null) { 1400 highlightSegs = new GeneralPath(); 1401 } 1402 1403 Point2D p1 = mapState.getPointFor(ws.getFirstNode()).getInView(); 1404 Point2D p2 = mapState.getPointFor(ws.getSecondNode()).getInView(); 1405 highlightSegs.moveTo(p1.getX(), p1.getY()); 1406 highlightSegs.lineTo(p2.getX(), p2.getY()); 1401 highlightSegs = new MapViewPath(mapState); 1402 } 1403 1404 highlightSegs.moveTo(ws.getFirstNode()); 1405 highlightSegs.lineTo(ws.getSecondNode()); 1407 1406 } 1408 1407 -
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/WireframeMapRenderer.java
r10829 r10875 30 30 import org.openstreetmap.josm.gui.MapViewState.MapViewPoint; 31 31 import org.openstreetmap.josm.gui.NavigatableComponent; 32 import org.openstreetmap.josm.gui.draw.MapPath2D; 32 33 33 34 /**
Note:
See TracChangeset
for help on using the changeset viewer.