Implementations of this interface are responsible for calculating the bounds of a group node during a layout process.
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.
|
Wed Oct 7 2015, 04:43 PM +02:00