documentationfor yFiles for HTML 3.0.0.3

GroupBoundsCalculator

This ILayoutGroupBoundsCalculator calculates the bounds of group nodes, allows to specify custom padding for each group node, and guarantees that their provided minimum sizes will be maintained.

Inheritance Hierarchy
GroupBoundsCalculator
Implemented Interfaces

Remarks

Padding is provided by an IMapper<K,V> that must have been registered with the graph using the data key GROUP_NODE_PADDING_DATA_KEY prior to the invocation of the layout algorithm. Furthermore, it guarantees that a desired minimum size is maintained. The minimum sizes are provided by an IMapper<K,V> registered with the graph using the data key MINIMUM_GROUP_NODE_SIZE_DATA_KEY or by the property defaultMinimumNodeSize.

Default Values of Properties

considerEdgeLabelsfalseEdge labels are not considered during the group bounds calculation.
considerNodeLabelsfalseNode labels are not considered during the group bounds calculation.
considerNodeMarginstruemargins are considered during the group bounds calculation.
defaultMinimumNodeSizeSizeD(0,0)A object with width and height set to 0.
xAlignment0.5Nodes grow equally to the left and to the right, while the center remains unchanged.
yAlignment0.5Nodes grow equally upwards and downwards, while the center remains unchanged.

Type Details

yFiles module
algorithms
This implementation is intended to be used with class RecursiveGroupLayout and assumes that the graph given to method calculateBounds only contains the content of the specified group (which is always true if it is called within the RecursiveGroupLayout).

Constructors

Properties

Methods