li = sg.getEdges()
.listIterator();
while (li.hasNext()) {
SimpleEdge e = (SimpleEdge) li.next();
//if (e.getId() != 3) continue;
bg.setColor(Consts.EDGE_C);
//bg.drawString("e"+e.getId(), xconvert(e.getSource().getOrthX()) - Consts.VR/2, yconvert(e.getSource().getOrthY()) - Consts.VR/2);
int[] xpoints = new int[e.getBendPoints()
.size() + 2];
int[] ypoints = new int[e.getBendPoints()
.size() + 2];
xpoints[0] = xconvert(e.getSource().getOrthX());
ypoints[0] = yconvert(e.getSource().getOrthY());
ListIterator libp = e.getBendPoints()
.listIterator();
int index = 1;
while (libp.hasNext()) {
BendPoint bp = (BendPoint) libp.next();
xpoints[index] = xconvert(bp.getOrthX());
ypoints[index] = yconvert(bp.getOrthY());
index++;
}
xpoints[index] = xconvert(e.getTarget().getOrthX());
ypoints[index] = yconvert(e.getTarget().getOrthY());
for (int i = 0; i < xpoints.length; i++) {
// bg.fillOval(xpoints[i], ypoints[i], Consts.OVR, Consts.OVR);
}
bg.drawPolyline(xpoints, ypoints, e.getBendPoints().size() + 2);
}
}