Search this API

y.layout.organic
Interface EllipticalGroupBoundsCalculator.ShapePointProvider

All Known Implementing Classes:
EllipticalGroupBoundsCalculator.EllipticalShapePointProvider
Enclosing class:
EllipticalGroupBoundsCalculator

public static interface EllipticalGroupBoundsCalculator.ShapePointProvider

Interface that can be used to query the points that lie on the convex hull of the visual shape of the nodes in the graph.

See Also:
EllipticalGroupBoundsCalculator.EllipticalShapePointProvider

Method Summary
 List getShapePoints(LayoutGraph graph, Node node)
          Retrieves the list of points that make up the (convex) hull of the visual representation of the given node.
 

Method Detail

getShapePoints

List getShapePoints(LayoutGraph graph,
                    Node node)
Retrieves the list of points that make up the (convex) hull of the visual representation of the given node.

Parameters:
graph - The graph that the node resides in.
node - The node to determine the points of the convex hull.
Returns:
A list containing the coordinates of the points that make up a convex hull of the visual representation of the node or null, if the default (rectangular) shape should be used.

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