if (GraphSettingsProvider.getInstance(project).getSettings(view.getGraph2D()).isFitContentAfterLayout()) {
GraphManager.getGraphManager().createBufferedLayouter(layouter).doLayout(view.getGraph2D());
view.fitContent();
} else {
// with animation
GraphLayout layout = GraphManager.getGraphManager().createBufferedLayouter(layouter).calcLayout(view.getGraph2D());
LayoutMorpher morpher = GraphManager.getGraphManager().createLayoutMorpher(view, layout);
morpher.setPreferredDuration(800);
morpher.setKeepZoomFactor(true);