Class ImprovedJGraphLayout
java.lang.Object
org.jgraph.layout.JGraphLayoutAlgorithm
de.saar.chorus.jgraph.improvedjgraph.layout.ImprovedJGraphLayout
- Direct Known Subclasses:
GecodeTreeLayout
public abstract class ImprovedJGraphLayout
extends org.jgraph.layout.JGraphLayoutAlgorithm
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidaddRelXtoParent(org.jgraph.graph.DefaultGraphCell node, Integer x) abstract voidaddRelXtoRoot(org.jgraph.graph.DefaultGraphCell node, Integer x) abstract voidaddRelYpos(org.jgraph.graph.DefaultGraphCell node, Integer y) abstract ShapegetNodesToShape(org.jgraph.graph.DefaultGraphCell node) abstract intgetNodeWidth(org.jgraph.graph.DefaultGraphCell node) Returns the node with computed by theJDomGraph.abstract IntegergetRelXtoParent(org.jgraph.graph.DefaultGraphCell node) abstract voidputNodeToShape(org.jgraph.graph.DefaultGraphCell node, Shape shape) abstract voidStarts the layout algorithm.Methods inherited from class org.jgraph.layout.JGraphLayoutAlgorithm
createDialog, createDialog, createSettings, getHint, getMaximumProgress, getProgress, isAllowedToRun, populateDialog, run, setAllowedToRun, setMaximumProgress, setProgress
-
Constructor Details
-
ImprovedJGraphLayout
public ImprovedJGraphLayout()
-
-
Method Details
-
run
Starts the layout algorithm.- Specified by:
runin classorg.jgraph.layout.JGraphLayoutAlgorithm
-
getRelXtoParent
-
addRelXtoParent
-
addRelXtoRoot
-
addRelYpos
-
getNodeWidth
public abstract int getNodeWidth(org.jgraph.graph.DefaultGraphCell node) Returns the node with computed by theJDomGraph.- Parameters:
node- the node to compute the width for- Returns:
- the width
-
getNodesToShape
-
putNodeToShape
-