de.cau.cs.kieler.klay.layered.p5edges
Class SplineEdgeRouter

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

public class SplineEdgeRouter
extends AbstractAlgorithm
implements ILayoutPhase

Implements a naive way of routing the edges with splines. Uses the dummy nodes as reference points for a spline calculation. This results in the bend points actually lying on the curve, being the dummy nodes.

Precondition:
the graph has a proper layering with assigned node and port positions; the size of each layer is correctly set
Postcondition:
each node is assigned a horizontal coordinate; the bend points of each edge are set; the width of the whole graph is set

Rating red

Constructor Summary
SplineEdgeRouter()
           
 
Method Summary
 IntermediateProcessingStrategy getIntermediateProcessingStrategy(LayeredGraph graph)
          Returns the intermediate layout processors this phase depends on.
 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

SplineEdgeRouter

public SplineEdgeRouter()
Method Detail

getIntermediateProcessingStrategy

public IntermediateProcessingStrategy getIntermediateProcessingStrategy(LayeredGraph graph)
Returns the intermediate layout processors this phase depends on.

Specified by:
getIntermediateProcessingStrategy in interface ILayoutPhase
Parameters:
graph - the layered graph to be processed. The strategy may vary depending on certain properties of the graph.
Returns:
intermediate processing strategy. May be null.

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