bounds = Maps.newHashMap();
final int x = 20;
int h = 20;
int w = 0;
for (Object node : nodes) {
GraphNodeUi2D nodeUi = graph.getNodeUi(node);
Dimension size = nodeUi.getMinimumSize();
Rectangle r = new Rectangle(x, h, size.width, size.height);
bounds.put(node, r);
if (size.width > w) {
w = size.width;
}