Class SFGecodeTreeLayout

java.lang.Object
de.saar.chorus.domgraph.layout.LayoutAlgorithm
de.saar.chorus.domgraph.layout.solvedformlayout.SFGecodeTreeLayout

public class SFGecodeTreeLayout extends LayoutAlgorithm
A layout algorithm for a solved form of a dominance graph represented by a JDomGraph. This tree layout uses the GECODE tree layout classes.
Author:
Michaela Regneri
  • Constructor Details

    • SFGecodeTreeLayout

      public SFGecodeTreeLayout()
    • SFGecodeTreeLayout

      public SFGecodeTreeLayout(int offset)
      Initializes a new SolvedFormLayout with the given JDomGraph.
      Parameters:
      gr - the solved form as JDomGraph to layout
  • Method Details

    • run

      public void run(org.jgraph.JGraph gr, Object[] cells, int arg2)
      Starts the layout algorithm.
    • layout

      protected void layout(DomGraph graph, NodeLabels labels, Canvas canvas)
      Specified by:
      layout in class LayoutAlgorithm
    • getRelXtoParent

      public Integer getRelXtoParent(String node)
    • addRelXtoParent

      public void addRelXtoParent(String node, Integer x)
    • addRelXtoRoot

      public void addRelXtoRoot(String node, Integer x)
    • addRelYpos

      public void addRelYpos(String node, Integer y)
    • getNodesToShape

      public Shape getNodesToShape(String node)
    • putNodeToShape

      public void putNodeToShape(String node, Shape shape)