de.cau.cs.kieler.klay.layered.intermediate
Class CommentPostprocessor
java.lang.Object
de.cau.cs.kieler.core.alg.AbstractAlgorithm
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

Method Summary |
void |
process(LayeredGraph layeredGraph)
Performs the phase's work on the given graph. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CommentPostprocessor
public CommentPostprocessor()
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