double y = Double.MAX_VALUE;
double x2 = Double.MIN_VALUE;
double y2 = Double.MIN_VALUE;
for(SNode node : nodes) {
Bounds bounds = node.getTransformedBounds();
if(bounds == null) {
u.p("waring. null bounds: " + node);
}
x = Math.min(x,bounds.getX());
y = Math.min(y,bounds.getY());
x2 = Math.max(x2,bounds.getX()+bounds.getWidth());
y2 = Math.max(y2,bounds.getY()+bounds.getHeight());
}
this.nodes.addAll(nodes);
this.boundsWidth = x2-x;