Share via


Hierarchy Child 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 child (hierChild) algorithm works with the hierarchy root (hierRoot) algorithm to create hierarchical tree layouts. The hierarchy child algorithm aligns and positions its child layout nodes in a linear path under the hierRoot layout node.

Parameters

Parameter

Values

Description

linDir

  • fromL (from left, default)

  • fromR (from right)

  • fromT (from top)

  • fromB (from bottom)

Specifies whether child nodes are arranged from left to right, right to left, top to bottom, or bottom to top.

chAlign

  • t (top)

  • b (bottom)

  • l (left, default)

  • r (right)

Specifies the alignment of child nodes.

secLinDir

  • none (default)

  • fromL (from left)

  • fromR (from right)

  • fromT (from top)

  • fromB (from bottom)

Specifies whether secondary child nodes are arranged from left to right, right to left, top to bottom, or bottom to top.

secChAlign

  • none (default)

  • t (top)

  • b (bottom)

  • l (left, default)

  • r (right)

Specifies the alignment of secondary 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.

sibSp

0

Specifies the distance between child nodes.

secSibSp

0

Specifies the distance between secondary child nodes.

See Also

Concepts

Algorithms, Parameters, and Constraints