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.
Default Values of Properties
| Name | Default |
|---|---|
| edgeRoutingStyle | MultiParentRoutingStyle.ORTHOGONAL |
| minimumBusDistance | 10 |
| minimumNodeDistance | 15d |
| verticalAlignment | 0.5 |
See Also
Developer's Guide
API
- multiParentDescriptors
Members
No filters for this type
Constructors
Creates a new MultiParentDescriptor instance with default settings.
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.
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
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:
10See Also
Developer's Guide
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:
10See Also
Developer's Guide
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:
0See Also
Developer's Guide