Search this API

y.layout.organic
Interface EllipticalGroupBoundsCalculator.ShapePointProvider

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

public static interface EllipticalGroupBoundsCalculator.ShapePointProvider

A ShapePointProvider retrieves the points that lie on the convex hull (the shape points) of the visual shape of the nodes in the graph.

See Also:
EllipticalGroupBoundsCalculator.SHAPE_POINT_PROVIDER_DPKEY
 

Method Summary
 java.util.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

java.util.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 in which the given node is contained
node - the node for which the points of the convex hull is retrieved
Returns:
a List of YPoints representing 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
See Also:
YPoint

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