v1.getVertexext()
.getLeftTop()
.getX() - element.getVertexext()
.getLeftTop()
.getX();
EdgeExt ee = new EdgeExt();
Anchor src = null;
Anchor target = null;
if (dist < 0) {
// v1 is src, v1.x < target.x
src = v1.getVertexext()
.getTopRightmost();
if (!inside) {
target = element.getVertexext()
.getLeftUpmost();
} else {
target = element.getVertexext()
.getLeftLowmost();
}
} else {
src = v1.getVertexext()
.getTopLeftmost();
if (!inside) {
target = element.getVertexext()
.getRightUpmost();
} else {
target = element.getVertexext()
.getRightLowmost();
}
}
ee.setSrcAnchor(src);
ee.setTargetAnchor(target);
edge.setEdgeext(ee);
}
}