public void mouseDragged(MouseEvent event) { Rectangle2D dirty = edge.getBounds(); Point2D p = graph.fromScreen(new Point(event.getPoint())); Rectangle2D r = edge.getBounds(); if (r != null) { edgeModified = true; dirty.add(edge.getBounds()); if (graph.isXorEnabled()) { overlay(graph.getGraphics()); dirty.add(edge.getBounds()); dirty = graph.toScreen((Rectangle2D) dirty.clone()); graph.repaint((int) dirty.getX(), (int) dirty
CellView portView = graph.getGraphLayoutCache().getMapping( port, false); Rectangle2D dirty = edge.getBounds(); dirty.add(portView.getParentView().getBounds()); if (GraphConstants.isConnectable(portView.getParentView() overlay(graph.getGraphics()); } else { dirty.add(edge.getBounds()); graph.repaint((int) dirty.getX(), (int) dirty .getY(), (int) dirty.getWidth(), overlay(graph.getGraphics()); } else { dirty.add(edge.getBounds()); graph.repaint((int) dirty.getX(), (int) dirty .getY(), (int) dirty.getWidth(),
AffineTransform oldTransform = g2.getTransform(); g2.scale(graph.getScale(), graph.getScale()); graph.getUI().paintCell(g, edge, edge.getBounds(), true); g2.setTransform(oldTransform);
overlay(graph.getGraphics()); } else { Rectangle2D dirty = edge.getBounds(); graph.repaint((int) dirty.getX(), (int) dirty.getY(), (int) dirty.getWidth(), (int) dirty.getHeight());