Changeset 18597 in osm for applications/editors/josm/plugins/routes/src/org
- Timestamp:
- 2009-11-14T20:01:49+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/routes/src/org/openstreetmap/josm/plugins/routes/RouteLayer.java
r18427 r18597 3 3 import java.awt.Color; 4 4 import java.awt.Component; 5 import java.awt.Graphics;6 5 import java.awt.Graphics2D; 7 6 import java.awt.Stroke; … … 12 11 13 12 import org.openstreetmap.josm.Main; 13 import org.openstreetmap.josm.data.Bounds; 14 14 import org.openstreetmap.josm.data.osm.DataSet; 15 15 import org.openstreetmap.josm.data.osm.Relation; … … 95 95 96 96 @Override 97 public void paint(Graphics g, MapView mv) {97 public void paint(Graphics2D g, MapView mv, Bounds bounds) { 98 98 99 99 DataSet dataset = Main.main.getCurrentDataSet(); … … 121 121 } 122 122 123 Stroke stroke = ((Graphics2D)g).getStroke();123 Stroke stroke = g.getStroke(); 124 124 Color color = g.getColor(); 125 125 for (ConvertedWay way:pathBuilder.getConvertedWays()) { 126 pathPainter.drawWay(way, mv, (Graphics2D)g);126 pathPainter.drawWay(way, mv, g); 127 127 } 128 ((Graphics2D)g).setStroke(stroke);128 g.setStroke(stroke); 129 129 g.setColor(color); 130 130 }
Note:
See TracChangeset
for help on using the changeset viewer.