y.layout.grouping
Interface GroupBoundsCalculator

All Known Implementing Classes:
InsetsGroupBoundsCalculator

public interface GroupBoundsCalculator

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


Method Summary
 Rectangle2D calculateBounds(LayoutGraph graph, Node groupNode, NodeList children)
          This method is called during the layout process.
 

Method Detail

calculateBounds

public Rectangle2D calculateBounds(LayoutGraph graph,
                                   Node groupNode,
                                   NodeList children)
This method is called during the layout process. It calculates the bounds for the given groupNode instance that contains the children.

Parameters:
graph - the graph instance for which the bounds will be calculated
groupNode - the group node whose bounds will be calculated
children - a list of nodes which reside inside the groupnode
Returns:
a Rectangle2D instance that describes the bounds of the groupnode.

© Copyright 2000-2003,
yWorks GmbH.
All rights reserved.

2003