Question

When I first populate a graph, all the nodes appear stacked on the top-left corner. When I invoke applyLayout() on the graph, the nodes move to the appropriate location with a nice animation. However, after I change the graph (remove some nodes, adds others) and invoke applyLayout() again, all the nodes move to their appropriate location, but they start at the top-left corner again.

Is there a way to make the nodes move from their current location to the new one, without having them reset to the top-left?

Was it helpful?

Solution

I don't think there is a way. However, in the latest version of Zest (see GEF 4 Update Sites), animation is disabled by default. This should at least result in the new layout appearing in the correct place directly.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top