Search this API

y.layout.grouping
Interface GroupBoundsCalculator

All Known Implementing Classes:
EllipticalGroupBoundsCalculator, InsetsGroupBoundsCalculator, MinimumSizeGroupBoundsCalculator

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

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 group node
Returns:
a Rectangle2D instance that describes the bounds of the group node.

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