SimpleVertex esource = edge.getSource();
SimpleVertex etarget = edge.getTarget();
BendPoint[] bparr = new BendPoint[4];
// made to move paths for ST edges
BendPoint start = new BendPoint(esource.getOrthX(),
esource.getOrthY());
BendPoint finish = new BendPoint(etarget.getOrthX(),
etarget.getOrthY());
bparr[0] = new BendPoint(esource.getOrthX(),
esource.getOrthY());
bparr[1] = SimpleOrthogonalizer.getIntersectionBendPoint(esource, edge);
if ((st == -1) || (st == 2)) {
bparr[0].setOrthY(bparr[0].getOrthY() - 1);
bparr[1].setOrthY(bparr[1].getOrthY() - 1);
}
bparr[2] = SimpleOrthogonalizer.getIntersectionBendPoint(etarget, edge);
bparr[3] = new BendPoint(etarget.getOrthX(),
etarget.getOrthY());
if ((st == 1) || (st == 2)) {
bparr[2].setOrthY(bparr[2].getOrthY() + 1);
bparr[3].setOrthY(bparr[3].getOrthY() + 1);
}
edge.getBendPoints()
.clear();
if (!start.equals(bparr[0])) {
edge.getBendPoints()
.add(bparr[0]);
}
if (!start.equals(bparr[1])) {
edge.getBendPoints()
.add(bparr[1]);
}
if (!finish.equals(bparr[2])) {
edge.getBendPoints()
.add(bparr[2]);
}
if (!finish.equals(bparr[3])) {
edge.getBendPoints()
.add(bparr[3]);
}
}