Skip navigation links

Package com.yworks.yfiles.layout.tree

Provides tree layout style algorithms.

See: Description

Package com.yworks.yfiles.layout.tree Description

Provides tree layout style algorithms.

Implementations support radial layout of (sub)trees, compact layout obeying a given aspect ratio, and also horizontal/vertical layout of directed (and undirected) trees.

Class ClassicTreeLayout arranges directed and undirected trees in a main layout direction.

Class TreeLayout enables the use of INodePlacer implementations which are invoked to arrange the subtrees. Predefined node placers that inherit from abstract class AbstractRotatableNodePlacer allow for rotating subtrees.
Note that TreeLayout can be used to emulate the results generated by ClassicTreeLayout.

Example graphs

Default tree layout

Balloon layout

Dendrogram layout

General graph, non-tree edges are marked

Related Documentation

See the yFiles Developer's Guide section on Tree Layout for descriptions of the yFiles tree layout style algorithms.

The section Generic Tree Layout extensively discusses the advanced capabilities of class TreeLayout and also its numerous INodePlacer implementations.

Skip navigation links
© Copyright 2000-2017,
yWorks GmbH.
All rights reserved.