de.cau.cs.kieler.klay.layered.intermediate
Class CommentPreprocessor

java.lang.Object
  extended by de.cau.cs.kieler.core.alg.AbstractAlgorithm
      extended by de.cau.cs.kieler.klay.layered.intermediate.CommentPreprocessor
All Implemented Interfaces:
IAlgorithm, ILayoutProcessor

public class CommentPreprocessor
extends AbstractAlgorithm
implements ILayoutProcessor

A pre-processor for comment boxes. Looks for comments that have exactly one connection to a normal node and removes them from the graph. Such comments are put either into the Properties.TOP_COMMENTS or the Properties.BOTTOM_COMMENTS list of the connected node and processed later by the CommentPostprocessor. Other comments are processed normally, i.e. they are treated as regular nodes, but their incident edges may be reversed.

Precondition:
none
Postcondition:
Comments with only one connection to a port of degree 1 are removed and stored for later processing.
Slots:
Before phase 1.

Rating red

Constructor Summary
CommentPreprocessor()
           
 
Method Summary
 void process(LayeredGraph layeredGraph)
          Performs the phase's work on the given graph.
 
Methods inherited from class de.cau.cs.kieler.core.alg.AbstractAlgorithm
getMonitor, reset, reset, setProgressMonitor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.cau.cs.kieler.core.alg.IAlgorithm
reset, reset, setProgressMonitor
 

Constructor Detail

CommentPreprocessor

public CommentPreprocessor()
Method Detail

process

public void process(LayeredGraph layeredGraph)
Performs the phase's work on the given graph.

Specified by:
process in interface ILayoutProcessor
Parameters:
layeredGraph - a layered graph