C

TabularLayoutNodeDescriptor

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

NameDefaultDescription
horizontalAlignment0.5
The node is center-aligned in its column.
verticalAlignment0.5
The node is center-aligned in its row.

See Also

Developer's Guide

API

nodeDescriptors, defaultNodeDescriptor

Members

No filters for this type

Constructors

Parameters

Properties

Gets or sets the horizontal alignment of the node within its column.

All nodes of the same column will be aligned according to their horizontal alignment setting.

  • A value of 0.0 corresponds to left-alignment.
  • A value of 0.5 corresponds to center-alignment.
  • A value of 1.0 corresponds 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.
Gets or sets the vertical alignment of the node within its row.

All nodes of the same row will be aligned according to their vertical alignment setting.

  • A value of 0.0 corresponds to top-alignment.
  • A value of 0.5 corresponds to center-alignment.
  • A value of 1.0 corresponds 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.
final

Return Value

TabularLayoutNodeDescriptor
A copy of this descriptor instance