/** * Launch an automatic layout process that will position nodes in the * background. */ public void enableAutoLayout() { enableAutoLayout(Layouts.newLayoutAlgorithm()); }
/** * Launch an automatic layout process that will position nodes in the * background. */ public void enableAutoLayout() { enableAutoLayout(Layouts.newLayoutAlgorithm()); }
public Viewer display(boolean autoLayout) { Viewer viewer = new Viewer(this, Viewer.ThreadingModel.GRAPH_IN_ANOTHER_THREAD); GraphRenderer renderer = Viewer.newGraphRenderer(); viewer.addView(Viewer.DEFAULT_VIEW_ID, renderer); if (autoLayout) { Layout layout = Layouts.newLayoutAlgorithm(); viewer.enableAutoLayout(layout); } return viewer; }
public Viewer display(boolean autoLayout) { Viewer viewer = new Viewer(this, Viewer.ThreadingModel.GRAPH_IN_ANOTHER_THREAD); GraphRenderer renderer = Viewer.newGraphRenderer(); viewer.addView(Viewer.DEFAULT_VIEW_ID, renderer); if (autoLayout) { Layout layout = Layouts.newLayoutAlgorithm(); viewer.enableAutoLayout(layout); } return viewer; }
layout = Layouts.newLayoutAlgorithm(); optLayout = new InnerLayoutRunner(); break; case COMPUTED_FULLY_AT_NEW_IMAGE: case COMPUTED_ONCE_AT_NEW_IMAGE: layout = Layouts.newLayoutAlgorithm(); gg.addSink(layout); layout.addAttributeSink(gg);
layout = Layouts.newLayoutAlgorithm(); optLayout = new InnerLayoutRunner(); break; case COMPUTED_FULLY_AT_NEW_IMAGE: case COMPUTED_ONCE_AT_NEW_IMAGE: layout = Layouts.newLayoutAlgorithm(); gg.addSink(layout); layout.addAttributeSink(gg);