mxIGraphLayout l = (mxIGraphLayout) layout;
l.execute(currentGraph.getDefaultParent());
}
if (layoutManager.isAnimated()) {
mxMorphing morph = new mxMorphing(graphComponent, 20, 1.2, 20);
morph.addListener(mxEvent.DONE, new mxIEventListener() {
public void invoke(Object sender, mxEventObject evt) {
currentGraph.getModel().endUpdate();
}
});
morph.startAnimation();
} else {
currentGraph.getModel().endUpdate();
}
mxParallelEdgeLayout paralLay = new mxParallelEdgeLayout(currentGraph);
paralLay.execute(currentGraph.getDefaultParent());