Ignore:
Timestamp:
2009-11-14T20:01:49+01:00 (15 years ago)
Author:
jttt
Message:

Updated to new MapViewPaintable.paint arguments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/routes/src/org/openstreetmap/josm/plugins/routes/RouteLayer.java

    r18427 r18597  
    33import java.awt.Color;
    44import java.awt.Component;
    5 import java.awt.Graphics;
    65import java.awt.Graphics2D;
    76import java.awt.Stroke;
     
    1211
    1312import org.openstreetmap.josm.Main;
     13import org.openstreetmap.josm.data.Bounds;
    1414import org.openstreetmap.josm.data.osm.DataSet;
    1515import org.openstreetmap.josm.data.osm.Relation;
     
    9595
    9696        @Override
    97         public void paint(Graphics g, MapView mv) {
     97        public void paint(Graphics2D g, MapView mv, Bounds bounds) {
    9898
    9999                DataSet dataset = Main.main.getCurrentDataSet();
     
    121121                }
    122122
    123                 Stroke stroke = ((Graphics2D)g).getStroke();
     123                Stroke stroke = g.getStroke();
    124124                Color color   = g.getColor();
    125125                for (ConvertedWay way:pathBuilder.getConvertedWays()) {
    126                         pathPainter.drawWay(way, mv, (Graphics2D) g);
     126                        pathPainter.drawWay(way, mv, g);
    127127                }
    128                 ((Graphics2D)g).setStroke(stroke);
     128                g.setStroke(stroke);
    129129                g.setColor(color);
    130130        }
Note: See TracChangeset for help on using the changeset viewer.