Search
OrthogonalRouter Class
Remarks See Also
 

Implements an orthogonal link routing algorithm.

Namespace: com.mindfusion.diagramming
Package: com.mindfusion.diagramming

 Syntax

Java  Copy Code

public class OrthogonalRouter extends AbstractLayout

 Remarks

OrthogonalRouter is a secondary layout algorithm that can be used to arrange links after an initial node arrangement has already been applied. The orthogonal layout is useful when there are much more links than nodes in a graph. The algorithm strives to achieve the following criteria, while preserving as much of the initial node configuration as possible.

  • links must not overlap;
  • only vertical and horizontal routing lines are used;
  • graph routing is performed with respect to the specified main layout direction;
  • links crossings are minimized;
  • bends are minimized;

To arrange a diagram, create an OrthogonalRouter instance, set its properties and call the arrange method.

 Inheritance Hierarchy

java.lang.Object
    com.mindfusion.diagramming.AbstractLayout
        com.mindfusion.diagramming.OrthogonalRouter

 See Also