1

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?

4

1 回答 1

1

我不认为有办法。但是,在最新版本的 Zest(参见GEF 4 更新站点)中,动画默认是禁用的。这至少应该导致新布局直接出现在正确的位置。

于 2013-05-06T11:37:45.720 回答