TreeLayout
open class TreeLayout : Layout
Implements several algorithms for arranging tree structures. This class inherits Layout.
-
Initializes a new instance of the TreeLayout class.
Declaration
Swift
public override init()
Return Value
The newly created instance of the TreeLayout.
-
Gets or sets the minimal distance between a parent node and its children.
Declaration
Swift
open var levelDistance: Double
-
Gets or sets how much space to leave between nodes on the same level.
Declaration
Swift
open var nodeDistance: Double
-
Gets or sets a value indicating whether to preserve the position of the root node.
Declaration
Swift
open var keepRootPosition: Bool
-
Gets or sets the direction of the arranged diagram.
Declaration
Swift
open var direction: LayoutDirection
-
Gets or sets the shape of the diagram links after they are laid out.
Declaration
Swift
open var linkType: TreeLayoutLinkType
-
Gets or sets a value indicating whether the “assistant” trait is regarded when performing the layout.
Declaration
Swift
open var enableAssistants: Bool
-
Gets or sets a value indicating whether the “assistant” nodes on the same side of a single parent are arranged as close enough to each other as possible. Turning this off will force the nodes on one side to be aligned with their counterparts in the other and occasionally leaving space between adjacent branches.
Declaration
Swift
open var compactAssistants: Bool