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

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

public class GraphvizLayoutProvider
extends AbstractLayoutProvider

Layout provider for the Graphviz layout tool. The actual Graphviz layout that is applied is determined by the parameter passed in the initialize(String) method.

Rating proposed yellow
(2009-12-11) msp

Constructor Summary
GraphvizLayoutProvider()
           
 
Method Summary
 void dispose()
          Dispose the layout provider by releasing any resources that are held.
 void doLayout(KNode parentNode, IKielerProgressMonitor progressMonitor)
          Performs the actual layout process, that is attaches layout information to the given node object.
 void initialize(String parameter)
          Initialize the layout provider with the given parameter.
 boolean supportsHierarchy(KNode layoutNode)
          Determines whether this layout provider would handle the complete hierarchy of the given layout node.
 
Methods inherited from class de.cau.cs.kieler.kiml.AbstractLayoutProvider
getDebugCanvas, setDebugCanvas
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphvizLayoutProvider

public GraphvizLayoutProvider()
Method Detail

initialize

public void initialize(String parameter)
Initialize the layout provider with the given parameter.

Overrides:
initialize in class AbstractLayoutProvider
Parameters:
parameter - a string used to parameterize the layout provider instance

dispose

public void dispose()
Dispose the layout provider by releasing any resources that are held.

Overrides:
dispose in class AbstractLayoutProvider

doLayout

public void doLayout(KNode parentNode,
                     IKielerProgressMonitor progressMonitor)
Performs the actual layout process, that is attaches layout information to the given node object.

Specified by:
doLayout in class AbstractLayoutProvider
Parameters:
parentNode - the parent node which should be laid out
progressMonitor - progress monitor used to keep track of progress

supportsHierarchy

public boolean supportsHierarchy(KNode layoutNode)
Determines whether this layout provider would handle the complete hierarchy of the given layout node. If it does, it is expected to layout not only the first hierarchy level of the input graph, but also all its children.

Overrides:
supportsHierarchy in class AbstractLayoutProvider
Parameters:
layoutNode - the parent node for which layout is requested
Returns:
true if the layout provider supports hierarchy