The major layout algorithms provided by yFiles inherit from abstract class CanonicMultiStageLayouter. This base class provides many useful layout stages, which, e.g., route self-loops and parallel edges, or arrange non-connected graph components. Figure 5.14, “The yFiles layout algorithms” shows the yFiles major layout algorithms.
yFiles supports different major layout styles:
Circular layout is described in the section called “Circular Layout”.
The hierarchical layout style is described in the section called “Hierarchical Layout Style”.
Encapsulated in class IncrementalHierarchicLayouter.
Plain orthogonal layout is described in the section called “Orthogonal Layout”, the modification thereof that supports grouped graphs in the section called “Orthogonal Layout of Grouped Graphs”. Special support for UML-style layout is provided by the orthogonal layout variant found in the section called “Directed Orthogonal Layout”.
Figure 5.18. Sample orthogonal layouts
Tree layout is described in the section called “Tree Layout”.
Figure 5.19. Sample tree layouts
Encapsulated in the classes TreeLayouter, BalloonLayouter, HVTreeLayouter, and ARTreeLayouter. Also, class GenericTreeLayouter encapsulates tree layout, too. The generic tree layout algorithm is described in the section called “Generic Tree Layout”.
Figure 5.20. Sample tree layouts (continued)
Radial layout is described in the section called “Radial Layout Style”.
Encapsulated in class RadialLayouter.
Copyright ©2004-2016, yWorks GmbH. All rights reserved.