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

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

public class CommentPostprocessor
extends AbstractAlgorithm
implements ILayoutProcessor

Post-processor for comment boxes. If any comments are found that were removed by the CommentPreprocessor, they are reinserted and placed above or below their corresponding connected node. This requires the margin around the node to be large enough to hold all comments, which is ensured by the NodeMarginCalculator.

Precondition:
Comments have been processed by CommentPreprocessor. Nodes are organized in layers and have been placed with enough spacing to hold their connected comment boxes.
Postcondition:
Comments that have been removed by pre-processing are reinserted properly in the graph.
Slots:
After phase 5.

Rating red

Constructor Summary
CommentPostprocessor()
           
 
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

CommentPostprocessor

public CommentPostprocessor()
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