Hierarchy Root Algorithm

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

The hierarchy root (hierRoot) algorithm works with the hierarchy child (hierChild) algorithm to create hierarchical tree layouts. The hierRoot algorithm aligns and positions the hierRoot layout node in relation to the hierChild layout nodes.

Parameters

Parameter

Values

Description

hierAlign

  • tL (top left)

  • tR (top right)

  • tCtrCh (top center child nodes, default)

  • tCtrDes (top center descendants)

  • bL (bottom left)

  • bR (bottom right)

  • bCtrCh (bottom center child nodes)

  • bCtrDes (bottom center descendants)

  • lT (left top)

  • lB (left bottom)

  • lCtrCh (left center child nodes)

  • lCtrDes (left center descendants)

  • rT (right top)

  • rB (right bottom)

  • rCtrCh (right center child nodes)

  • rCtrDes (right center descendants)

Specifies the layout of hierarchy root and child nodes.

horzAlign

  • l (left)

  • ctr (center, default)

  • r (right)

Aligns all the child nodes in the space reserved for the parent node and adjusts child node positions along the x-axis.

vertAlign

  • t (top)

  • mid (middle, default)

  • b (bottom)

Aligns all the child nodes in the space reserved for the parent node and adjusts child node positions along the y-axis.

Constraints

Constraint

Default value

Description

w

100

Specifies the width of the bounding box for a node.

h

100

Specifies the height of the bounding box for a node.

alignOff

0

Specifies the amount to offset the alignment of a node.

sp

0

Specifies the distance between child nodes, which is typically between the text node and the hierChild nodes.

See Also

Concepts

Algorithms, Parameters, and Constraints