Search this API

y.layout.grouping
Interface GroupBoundsCalculator

All Known Implementing Classes:
EllipticalGroupBoundsCalculator, InsetsGroupBoundsCalculator, MinimumSizeGroupBoundsCalculator

public interface GroupBoundsCalculator

A GroupBoundsCalculator is responsible for calculating the bounds of a group node during a layout process.

 

Method Summary
 java.awt.geom.Rectangle2D calculateBounds(LayoutGraph graph, Node groupNode, NodeList children)
          Calculates the bounds of the given group node that contains the given list of child nodes.
 

Method Detail

calculateBounds

java.awt.geom.Rectangle2D calculateBounds(LayoutGraph graph,
                                          Node groupNode,
                                          NodeList children)
Calculates the bounds of the given group node that contains the given list of child nodes.

This method is called during the layout process.

Parameters:
graph - the input graph
groupNode - the group node whose bounds will be calculated
children - a NodeList containing the nodes that reside inside the group node
Returns:
a Rectangle2D instance that describes the bounds of the group node

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