DroidDiagram Programmer's Guide
TreeLayout Members
Constructors Methods
 


Implements several algorithms for arranging tree structures.

The following tables list the members exposed by the TreeLayout type.

 Public Constructors

  Name Description

TreeLayout

Overloaded. Initializes a new TreeLayout instance.

 Public Methods

  Name Description

arrange

Arranges the specified diagram.

getAnchoring

Gets a value indicating how links will be aligned to the anchor points of tree nodes.

getBalance

Gets a value indicating the ordering of the child nodes in order to produce layouts with custom balance.

getCompactAssistants

Gets 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.

getDirection

Gets a value indicating in what direction child nodes should be placed relatively to their parent nodes.

getEnableAssistants

Gets a value indicating whether the "assistant" trait is regarded when performing the layout.

getIgnoreLinkDirection

Gets a value indicating whether the direction of links should be ignored.

getKeepGroupLayout

Gets a value indicating whether groups of diagram nodes should be treated as integral nodes in the tree that will be laid out.

getKeepRootPosition

Gets a value indicating whether the root node should be kept at its original position.

getLevelDistance

Gets the desired distance between tree levels.

getLinkStyle

Gets what style is assigned to the links processed by the TreeLayout.

getNodeDistance

Gets the desired distance between nodes on the same level.

getReversedLinks

Gets a value indicating which direction of links should be considered the parent-to-child one.

getRoot

Gets the node which will be used as root of the tree.

getStretchFactor

Gets a value defining the elliptic factor used with radial layouts.

getType

Gets the layout mode.

getXGap

Gets a value indicating how much horizontal space to leave between the document boundaries and the tree.

getYGap

Gets a value indicating how much vertical space to leave between the document boundaries and the tree.

init

Returns a TreeLayoutBuilder object used to configure this TreeLayout instance.

setAnchoring

Sets a value indicating how links should be aligned to the anchor points of tree nodes.

setBalance

Sets a value indicating the ordering of the child nodes in order to produce layouts with custom balance.

setCompactAssistants

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.

setDirection

Sets a value indicating in what direction child nodes should be placed relatively to their parent nodes.

setEnableAssistants

Sets a value indicating whether the "assistant" trait is regarded when performing the layout.

setIgnoreLinkDirection

Sets a value indicating whether the direction of links should be ignored.

setKeepGroupLayout

Sets a value indicating whether groups of diagram nodes should be treated as integral nodes in the tree that will be laid out.

setKeepRootPosition

Sets a value indicating whether the root node should be kept at its original position.

setLevelDistance

Sets the desired distance between tree levels.

setLinkStyle

Sets what style should be assigned to the links processed by the layout algorithm.

setNodeDistance

Sets the desired distance between nodes on the same level.

setReversedLinks

Sets a value indicating which direction of links should be considered the parent-to-child one.

setRoot

Sets the object which will be used as root of the tree.

setStretchFactor

Sets a value defining the elliptic factor used with radial layouts.

setType

Sets the layout mode.

setXGap

Sets a value indicating how much horizontal space to leave between the document boundaries and the tree.

setYGap

Sets a value indicating how much vertical space to leave between the document boundaries and the tree.

with

Returns a TreeLayoutBuilder object used to configure and create new TreeLayout instances.

 See Also

TreeLayout Class
com.mindfusion.diagramming Namespace