Ignore:
Timestamp:
2009-11-14T19:27:50+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/graphview/src/org/openstreetmap/josm/plugins/graphview/plugin/layer/GraphViewLayer.java

    r18130 r18593  
    1919import org.openstreetmap.josm.Main;
    2020import org.openstreetmap.josm.actions.RenameLayerAction;
     21import org.openstreetmap.josm.data.Bounds;
    2122import org.openstreetmap.josm.data.coor.EastNorth;
    2223import org.openstreetmap.josm.data.coor.LatLon;
     
    148149
    149150                List<Segment> edgeSegments = e.getPropertyValue(GraphEdgeSegments.PROPERTY);
    150                
     151
    151152                if (edgeSegments.size() > 0) {
    152153
     
    283284
    284285        @Override
    285         public void paint(final Graphics g, final MapView mv) {
    286 
    287                 assert g instanceof Graphics2D;
    288                 Graphics2D g2D = ((Graphics2D)g);
    289 
     286        public void paint(final Graphics2D g, final MapView mv, Bounds bounds) {
    290287                if (wayGraph != null) {
    291288
     
    295292
    296293                        for (GraphEdge e : wayGraph.getEdges()) {
    297                                 paintGraphEdge(e, g2D, mv);
     294                                paintGraphEdge(e, g, mv);
    298295                        }
    299296
Note: See TracChangeset for help on using the changeset viewer.