de.cau.cs.kieler.kiml.graphviz.layouter
Class GraphvizLayouter

java.lang.Object
  extended by de.cau.cs.kieler.kiml.graphviz.layouter.GraphvizLayouter

public class GraphvizLayouter
extends Object

Layouter that calls Graphviz through a child process to perform layout. The graph structure and layout information is passed through a textual format called Dot, see the Dot language specification. Serialization and parsing of this textual format is done using Xtext.

Rating proposed yellow
(2009-12-11) msp

Constructor Summary
GraphvizLayouter()
           
 
Method Summary
 void layout(KNode parentNode, IKielerProgressMonitor progressMonitor, KGraphDotTransformation.Command command)
          Performs the actual work of the layout process.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphvizLayouter

public GraphvizLayouter()
Method Detail

layout

public void layout(KNode parentNode,
                   IKielerProgressMonitor progressMonitor,
                   KGraphDotTransformation.Command command)
Performs the actual work of the layout process. Translates the KNode into a structure GraphViz understands, calls the desired GraphViz layouter and annotates the KLayoutGraph with the position and size information provided by GraphViz.

Parameters:
parentNode - the node to process
progressMonitor - a monitor to which progress is reported
command - Graphviz command to use, determines the layout algorithm