C

MultiParentDescriptor

The MultiParentDescriptor provides style information for multi-parent structures.
Inheritance Hierarchy

Remarks

This class is used by TreeLayout to determine the desired layout of nodes that constitute a multi-parent structure. All nodes of such a structure are placed side by side and the incident edges are routed over common points for incoming edges and for outgoing edges.

A tree graph containing multi-parent structures

Default Values of Properties

NameDefault
edgeRoutingStyleMultiParentRoutingStyle.ORTHOGONAL
minimumBusDistance10
minimumNodeDistance15d
verticalAlignment0.5

See Also

Developer's Guide

API

multiParentDescriptors

Members

No filters for this type

Constructors

Creates a new MultiParentDescriptor instance with default settings.

Parameters

Properties

Gets or sets the routing style for edges that connect to nodes which constitute a multi-parent structure.
The routing style is applied only to the part of the edge route that is not shared by multiple edges.
conversionfinal

Throws

Exception ({ name: 'ArgumentError' })
If the given routing style is unknown

Default Value

The default value is: MultiParentRoutingStyle.ORTHOGONAL

See Also

Developer's Guide
Gets or sets the minimum distance between the nodes of a multi-parent structure and the bus connecting these nodes.

In case the edge style is not orthogonal, the bus only consists of a common point.

The minimum distance needs to be non-negative.

final

Property Value

the minimum bus distance

Throws

Exception ({ name: 'ArgumentError' })
if the given bus distance is negative

Default Value

The default value is: 10

Sample Graphs

ShownSetting: 10

See Also

Developer's Guide
Gets or sets the minimum distance between two nodes belonging to the same multi-parent structure.
The distance needs to be non-negative.
final

Property Value

the minimum distance between nodes

Throws

Exception ({ name: 'ArgumentError' })
if the given node distance is negative

Default Value

The default value is: 15d

Sample Graphs

ShownSetting: 10

See Also

Developer's Guide
Gets or sets the relative vertical alignment of nodes belonging to the same multi-parent structure.

A value of 0 means that nodes are top-aligned; a value of 1 means that nodes are bottom-aligned; a value of 0.5 means that nodes are center-aligned.

Values outside the interval [0,1] will result in a compact node placement with unaligned nodes, especially when labels are considered.

final

Property Value

the relative vertical alignment of multi-parent nodes

Default Value

The default value is: 0.5

Sample Graphs

ShownSetting: 0

See Also

Developer's Guide