* st == -1 -> source
* st == 1 -> target
* st == 2 -> ST
*/
private void buildEdgeComplex(SimpleEdge edge, int st) {
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);
}