use of org.vcell.util.graphlayout.ContainedGraphLayouter in project vcell by virtualcell.
the class GraphLayoutManager method layoutContainedGraph.
public void layoutContainedGraph(Client client) {
ContainedGraphLayouter layouter = null;
String layoutName = client.getLayoutName();
if (RandomLayouter.LAYOUT_NAME.equals(layoutName)) {
layouter = new RandomLayouter();
} else if (EdgeTugLayouter.LAYOUT_NAME.equals(layoutName)) {
layouter = new EdgeTugLayouter();
} else if (ShootAndCutLayouter.LAYOUT_NAME.equals(layoutName)) {
layouter = new ShootAndCutLayouter();
} else if (StretchToBoundaryLayouter.LAYOUT_NAME.equals(layoutName)) {
layouter = new StretchToBoundaryLayouter();
} else if (SimpleElipticalLayouter.LAYOUT_NAME.equals(layoutName)) {
layouter = new SimpleElipticalLayouter();
} else if (ShrinkCanvasLayouter.LAYOUT_NAME.equals(layoutName)) {
layouter = new ShrinkCanvasLayouter();
} else if (ExpandCanvasLayouter.LAYOUT_NAME.equals(layoutName)) {
layouter = new ExpandCanvasLayouter();
} else if (GenericLogicGraphLayouter.LAYOUT_NAME.equals(layoutName)) {
layouter = new GenericLogicGraphLayouter();
}
if (layouter != null) {
layouter.layout(client);
}
}
Aggregations