Search in sources :

Example 1 with RandomLayouter

use of org.vcell.util.graphlayout.RandomLayouter 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);
    }
}
Also used : ContainedGraphLayouter(org.vcell.util.graphlayout.ContainedGraphLayouter) RandomLayouter(org.vcell.util.graphlayout.RandomLayouter) ShrinkCanvasLayouter(org.vcell.util.graphlayout.ShrinkCanvasLayouter) GenericLogicGraphLayouter(org.vcell.util.graphlayout.GenericLogicGraphLayouter) ShootAndCutLayouter(org.vcell.util.graphlayout.energybased.ShootAndCutLayouter) SimpleElipticalLayouter(org.vcell.util.graphlayout.SimpleElipticalLayouter) EdgeTugLayouter(org.vcell.util.graphlayout.EdgeTugLayouter) StretchToBoundaryLayouter(org.vcell.util.graphlayout.StretchToBoundaryLayouter) ExpandCanvasLayouter(org.vcell.util.graphlayout.ExpandCanvasLayouter)

Aggregations

ContainedGraphLayouter (org.vcell.util.graphlayout.ContainedGraphLayouter)1 EdgeTugLayouter (org.vcell.util.graphlayout.EdgeTugLayouter)1 ExpandCanvasLayouter (org.vcell.util.graphlayout.ExpandCanvasLayouter)1 GenericLogicGraphLayouter (org.vcell.util.graphlayout.GenericLogicGraphLayouter)1 RandomLayouter (org.vcell.util.graphlayout.RandomLayouter)1 ShrinkCanvasLayouter (org.vcell.util.graphlayout.ShrinkCanvasLayouter)1 SimpleElipticalLayouter (org.vcell.util.graphlayout.SimpleElipticalLayouter)1 StretchToBoundaryLayouter (org.vcell.util.graphlayout.StretchToBoundaryLayouter)1 ShootAndCutLayouter (org.vcell.util.graphlayout.energybased.ShootAndCutLayouter)1