Class SFGecodeTreeLayout
java.lang.Object
de.saar.chorus.domgraph.layout.LayoutAlgorithm
de.saar.chorus.domgraph.layout.solvedformlayout.SFGecodeTreeLayout
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
-
Field Summary
Fields inherited from class de.saar.chorus.domgraph.layout.LayoutAlgorithm
nodeToLabel -
Constructor Summary
ConstructorsConstructorDescriptionSFGecodeTreeLayout(int offset) Initializes a newSolvedFormLayoutwith the givenJDomGraph. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRelXtoParent(String node, Integer x) voidaddRelXtoRoot(String node, Integer x) voidaddRelYpos(String node, Integer y) getNodesToShape(String node) getRelXtoParent(String node) protected voidlayout(DomGraph graph, NodeLabels labels, Canvas canvas) voidputNodeToShape(String node, Shape shape) voidStarts the layout algorithm.Methods inherited from class de.saar.chorus.domgraph.layout.LayoutAlgorithm
layout, removeRedundandEdges
-
Constructor Details
-
SFGecodeTreeLayout
public SFGecodeTreeLayout() -
SFGecodeTreeLayout
public SFGecodeTreeLayout(int offset) Initializes a newSolvedFormLayoutwith the givenJDomGraph.- Parameters:
gr- the solved form asJDomGraphto layout
-
-
Method Details
-
run
Starts the layout algorithm. -
layout
- Specified by:
layoutin classLayoutAlgorithm
-
getRelXtoParent
-
addRelXtoParent
-
addRelXtoRoot
-
addRelYpos
-
getNodesToShape
-
putNodeToShape
-