Remarks
A HierarchicalLayoutNodeDescriptor instance can be specified individually for single nodes with nodeDescriptors.
This class is designed as a class to allow future additions of new getter methods.
Default Values of Properties
| Name | Default | Description |
|---|---|---|
| borderToPortGapRatio | 0.5d | Ports are distributed along the sides of the node. |
| gridReference | Point.ORIGIN | The reference point is ORIGIN and the center of the node is placed on the grid. |
| layerAlignment | 0.5d | Nodes are center-aligned within their corresponding layers. |
| minimumDistance | 5.0d | |
| minimumLayerHeight | 0.0d | |
| portAssignment | HierarchicalLayoutPortAssignmentMode.DEFAULT | Ports are distributed evenly along the border of the node. |
| tabularGroupChildDistance | 0 |
See Also
Developer's Guide
API
- nodeDescriptors, HierarchicalLayoutEdgeDescriptor
Members
Constructors
Creates a new instance of a HierarchicalLayoutNodeDescriptor with the default values.
Parameters
Properties
This ratio determines the gap between a corner of the node and the first assigned port.
The ratio should be greater than 0.
A value of 0.0d results in ports being placed directly on the corner of the node (if there is more than one port).
A value of 0.5d results in ports being distributed along the side of the node so that the distance between the corner of the node and the first port is half as wide as the distance between two adjacent ports.
A value of Double.POSITIVE_INFINITY results in all ports being centered at the side in one point.
Property Value
Throws
- Exception ({ name: 'ArgumentError' })
- if the given ratio is negative
Default Value
Sample Graphs
Gets or sets the node's reference point that will be placed on a grid coordinate.
Property Value
Throws
- Exception ({ name: 'ArgumentError' })
- if the given grid reference is null
Default Value
See Also
Developer's Guide
Gets or sets the alignment of the LayoutNode of this HierarchicalLayoutNodeDescriptor instance within its layer.
- A value of
0.0dcorresponds to top-alignment. - A value of
0.5dcorresponds to center-alignment. - A value of
1.0dcorresponds to bottom-alignment.
[0,1] interval.Property Value
[0,1] intervalThrows
- Exception ({ name: 'ArgumentError' })
- if the alignment is not within the interval
[0,1]
Default Value
Sample Graphs
(0.0d)Currently, this distance only affects the following scenarios:
- Distance between group nodes and other elements (horizontally and vertically).
- The distance of normal nodes and group node to borders of a layout grid cell or swimlane.
- The segment length of self-loops associated with this node.
The minimum distance should be greater than 0.
Property Value
Throws
- Exception ({ name: 'ArgumentError' })
- if the minimum length is negative
Default Value
Sample Graphs
5.00.Property Value
Throws
- Exception ({ name: 'ArgumentError' })
- if the minimum height is negative
Default Value
Sample Graphs
0.0d (the bottom center node has layer alignment 1.0, all other nodes layer alignment 0.0)The node may be enlarged to ensure that the distances between the ports can be at least the given minimum distance. If the original size is already sufficient, it is not changed.
Negative values result in not changing the node size.
A value of 0.0d results in enlarging the node such that the edges (with given thicknesses) can be packed tightly.
A value larger than 0.0d results in enlarging the node such that the gaps between edges (with given thicknesses) have at least the required minimum size.
Default Value
Gets or sets the assignment strategy which distributes the ports along the node borders.
Property Value
Default Value
See Also
Developer's Guide
Gets or sets the distance between this node and the other child nodes if they are part of a tabular group structure (tabularGroups).
This setting defines the spacing of child nodes in a tabular group node for which the global nodeDistance is ignored.
By default, this distance is set to zero to obtain maximally compact tabular group nodes without any spacing between the children.
Property Value
Throws
- Exception ({ name: 'ArgumentError' })
- if the given distance is negative
Default Value
Sample Graphs
See Also
Developer's Guide