C

PartitionDescriptor

This class provides settings for the layout of the individual partitions of the CircularLayout.
Inheritance Hierarchy

Members

Show:

Properties

Gets or sets whether the radius of the circle should be determined automatically.

If enabled, the radius will be chosen such that the distance between nodes which are next to each other on the circle is approximately the same as the addMinimumDistance.

If this feature is disabled, the radius specified via fixedRadius will be applied.

If style is set to COMPACT_DISK, this setting is ignored.
final

Property Value

true, if the radius of the circle is determined automatically, false, otherwise

Default Value

The default value is: true
The radius will be chosen automatically.

See Also

Developer's Guide
API
minimumRadius, fixedRadius
Gets or sets a fixed radius for the circle on which the nodes will be placed.
If the radius is too small, the nodes on the circle may overlap with each other.
This fixed radius is only considered if the radius is not automatically selected by the layout algorithm.
If style is set to COMPACT_DISK, this setting is ignored.
final

Property Value

the fixed radius for the circle

Throws

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

Default Value

The default value is: 200

Sample Graphs

ShownSetting: 200

See Also

Developer's Guide
API
minimumRadius, automaticRadius
Gets or sets the minimum distance between nodes that are next to each other on the circle.
The minimum node distance will be ignored if the automatic radius selection is disabled. In that case, the distance between nodes will follow from the specified fixedRadius.
final

Property Value

the non-negative minimum distance between nodes

Throws

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

Default Value

The default value is: 30

Sample Graphs

ShownSetting: Minimum node distance set to 30

See Also

Developer's Guide
Gets or sets the minimum radius for the circle on which the nodes are placed.
This setting is only considered if style is set to CYCLE and the automatic radius selection is enabled.
final

Property Value

the minimum circle radius

Throws

Exception ({ name: 'ArgumentError' })
if the given minimum radius is negative

Default Value

The default value is: 5.0

See Also

API
fixedRadius, automaticRadius
Gets or sets the layout style for the partitions.
The partitioning of the input graph can be controlled with the partitioningPolicy property.
conversionfinal

Property Value

one of the partition layout styles

Default Value

The default value is: CircularLayoutPartitionStyle.CYCLE
All nodes of a partition are placed on the boundary of a circle.

See Also

Developer's Guide