setLinkStartAnchor(startElement.getAnchor(startAnchorKey));
if(ce == null || ce instanceof GLink) {
setLinkEnd(Vector2D.vector(mouse), Anchor2D.DIRECTION_BOTTOM);
} else {
Anchor2D anchor = ce.getAnchorClosestToPoint(mouse);
String anchorKey = ce.getAnchorKeyClosestToPoint(mouse);
setLinkEnd(anchor.position, anchor.direction);
if(selfLoop) {
if(anchor.direction == Anchor2D.DIRECTION_FREE)