Enumeration TreeStyle

GoJS® Diagramming Components
version 3.0.16
by Northwoods Software®

This enumeration specifies the general style in which the nodes are laid out. Used for TreeLayout.treeStyle.

since

3.0

Index

Enumeration Members

Alternate layers of the tree have different properties, typically including the angle.

Each TreeVertex gets its properties from its grandparent node; The root nodes get their defaults from TreeLayout.rootDefaults.

The immediate children of root nodes get their defaults from TreeLayout.alternateDefaults.

Depending on the properties used, it is possible for some link routes to cross over nodes.

Just like the standard layered tree style, except that the nodes with children but no grandchildren have alternate properties.

Each TreeVertex gets its properties from its parent node; However, for those nodes whose TreeVertex.maxGenerationCount is 1, in other words when it has children but no grandchildren, the properties are copied from TreeLayout.alternateDefaults.

If the tree only has two levels, the root node gets the TreeLayout.rootDefaults.

The normal tree style, where all of the children of each TreeVertex are lined up horizontally or vertically.

Each TreeVertex gets its properties from its parent node; TreeLayout.rootDefaults is used for all default TreeVertex property values; TreeLayout.alternateDefaults is ignored.

All of the nodes get the alternate properties, except the root node gets the default properties.

The root node gets the TreeLayout.rootDefaults properties, the root node's children get the TreeLayout.alternateDefaults properties, and all the rest of the TreeVertexes get their properties from their parent node.