This class is used by TabularLayout to provide placement details for nodes during the layout process.
Inheritance Hierarchy
Remarks
It allows to configure layout settings individually for each node of the input graph.
A TabularLayoutNodeDescriptor can be specified individually for single nodes with nodeDescriptors. If no individual descriptor is bound to a node. In the latter case, the default descriptor is used.
Default Values of Properties
| Name | Default | Description |
|---|---|---|
| horizontalAlignment | 0.5 | The node is center-aligned in its column. |
| verticalAlignment | 0.5 | The node is center-aligned in its row. |
See Also
Developer's Guide
API
- nodeDescriptors, defaultNodeDescriptor
Members
No filters for this type
Constructors
Properties
All nodes of the same column will be aligned according to their horizontal alignment setting.
- A value of
0.0corresponds to left-alignment. - A value of
0.5corresponds to center-alignment. - A value of
1.0corresponds to right-alignment.
The horizontal alignment value must be within [0,1].
final
Property Value
the horizontal alignment value in the interval
[0,1]Throws
- Exception ({ name: 'ArgumentError' })
- if the given value is not within the interval
[0,1]
Default Value
The default value is: 0.5
The node is center-aligned in its column.
Sample Graphs
ShownSetting: Nodes in the first column are left-aligned, nodes in the second column are center-aligned, nodes in the third column are right-aligned.
All nodes of the same row will be aligned according to their vertical alignment setting.
- A value of
0.0corresponds to top-alignment. - A value of
0.5corresponds to center-alignment. - A value of
1.0corresponds to bottom-alignment.
The vertical alignment value must be within [0,1].
final
Property Value
the vertical alignment value in the interval
[0,1]Throws
- Exception ({ name: 'ArgumentError' })
- if the given value is not within the interval
[0,1]
Default Value
The default value is: 0.5
The node is center-aligned in its row.
Sample Graphs
ShownSetting: Nodes in the first row are top-aligned, nodes in the second row are center-aligned, nodes in the third row are bottom-aligned.
Methods
Creates a copy of this descriptor instance.
Creates a copy of this descriptor instance.