succ = (InputPrimitive) GraphElement.forElement((Element) prims
.item(j));
ans.add(succ);
x1 = Math.max(x1, succ.getPreferredSize().width);
if (j > 0)
ans.add(new ServiceLink(pred, succ));
pred = succ;
}
}
ss.setPreferredLocation(x1 - w, 0);
int x2 = x1 + ss.getComponent(2).getPreferredSize().width;