startOffset = new Point(0, 0);
if (displayMode == ElbowConnection2.V_V_MODE || displayMode == ElbowConnection2.V_H_MODE) {
startOffset.x = x - anchorX + initStartOffset.x;
line.setAttribute(ElbowConnection2.START_OFFSET, startOffset);
line.layoutConnection();
} else if (displayMode == ElbowConnection2.H_H_MODE || displayMode == ElbowConnection2.H_V_MODE) {
startOffset.y = y - anchorY + initStartOffset.y;
line.setAttribute(ElbowConnection2.START_OFFSET, startOffset);
line.layoutConnection();
} else {