Packagecom.yworks.yfiles.layout.grouping
Interfacepublic interface GroupBoundsCalculator
Implementors InsetsGroupBoundsCalculator

Implementations of this interface are responsible for calculating the bounds of a group node during a layout process.



Public Methods
 MethodDefined By
  
This method is called during the layout process.
GroupBoundsCalculator
Method Detail
calculateBounds()method
public function calculateBounds(graph:LayoutGraph, groupNode:Node, children:NodeList):Rectangle2D

This method is called during the layout process. It calculates the bounds for the given groupNode instance that contains the children.

Parameters

graph:LayoutGraph — the graph instance for which the bounds will be calculated
 
groupNode:Node — the group node whose bounds will be calculated
 
children:NodeList — a list of nodes which reside inside the group node

Returns
Rectangle2D — a Rectangle2D instance that describes the bounds of the group node.