/** * Returns the bounds of the edge shape without label */ public Rectangle2D getPaintBounds(EdgeView view) { Rectangle2D rec = null; setView(view); if (view.getShape() != null && view.getShape().getBounds()!=null) rec = view.getShape().getBounds(); else rec = new Rectangle2D.Double(0, 0, 0, 0); return rec; }
Shape edgeShape = view.getShape();
} else { Graphics2D g2 = (Graphics2D) graph.getGraphics(); if (g2.hit(rect, view.getShape(), true)) return true;