2 out of 5 rated this helpful - Rate this topic

# Cycle Algorithm

Office 2007

The cycle algorithm arranges child layout nodes around a circle or portion of a circle by using equal angle spacing.

# Parameters

ParameterValuesDescription

rotPath

• `none` (default)

• `alongPath`

If the value of rotPath is `alongPath`, the algorithm rotates all child nodes perpendicular to the line from the cycle’s center to the child node; otherwise, the nodes are not rotated. When `alongPath` is used, the cycle algorithm does not take rotation into account when determining whether shapes overlap.

stAng

A double-precision numeric value from 0 through 360. The default is 0.

Specifies the angle at which the first shape is placed. Angles are in degrees, measured clockwise from a line pointing straight upward from the center of the cycle.

spanAng

A double-precision numeric value from –360 through 360. The default is 360.

Specifies the angle that the cycle spans. Final layout node text is placed at stAng + spanAng, unless the value of spanAng is 360. In that case, the algorithm places the layout node so that shapes do not overlap.

stElem

• `node` (default)

• `trans` (transition)

Specifies the point type of the layout node to use as the first shape in the cycle.

ctrShpMap

• `none` (default)

• `fNode` (first node)

A value of `none` specifies to place nodes around a circle. A value of `fNode` specifies to place the first node in the center and the remaining nodes around the circle.

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

ConstraintDefault valueDescription

w

100

Specifies the width of the bounding box for a node.

h

100

Specifies the height of the bounding box for a node.

diam

0

Specifies that child nodes are placed around a circle of the specified diameter.

sibSp

0

Specifies the minimum distance between sibling shapes.

sp

0

Specifies the minimum distance between the center shape and surrounding shapes, if the value of the ctrShpMap parameter is `fNode`.