Index: applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/plugin/layer/GraphViewLayer.java
===================================================================
--- applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/plugin/layer/GraphViewLayer.java	(revision 18415)
+++ applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/plugin/layer/GraphViewLayer.java	(revision 18593)
@@ -19,4 +19,5 @@
 import org.openstreetmap.josm.Main;
 import org.openstreetmap.josm.actions.RenameLayerAction;
+import org.openstreetmap.josm.data.Bounds;
 import org.openstreetmap.josm.data.coor.EastNorth;
 import org.openstreetmap.josm.data.coor.LatLon;
@@ -148,5 +149,5 @@
 
 		List<Segment> edgeSegments = e.getPropertyValue(GraphEdgeSegments.PROPERTY);
-		
+
 		if (edgeSegments.size() > 0) {
 
@@ -283,9 +284,5 @@
 
 	@Override
-	public void paint(final Graphics g, final MapView mv) {
-
-		assert g instanceof Graphics2D;
-		Graphics2D g2D = ((Graphics2D)g);
-
+	public void paint(final Graphics2D g, final MapView mv, Bounds bounds) {
 		if (wayGraph != null) {
 
@@ -295,5 +292,5 @@
 
 			for (GraphEdge e : wayGraph.getEdges()) {
-				paintGraphEdge(e, g2D, mv);
+				paintGraphEdge(e, g, mv);
 			}
 
