/** Sets the point and updates the connection. */ public void setPointAt(Point p, int i) { super.setPointAt(p, i); layoutConnection(); }