y.layout.organic
Class EllipticalGroupBoundsCalculator.EllipticalShapePointProvider
java.lang.Object
y.layout.organic.EllipticalGroupBoundsCalculator.EllipticalShapePointProvider
- All Implemented Interfaces:
- EllipticalGroupBoundsCalculator.ShapePointProvider
- Enclosing class:
- EllipticalGroupBoundsCalculator
public static final class EllipticalGroupBoundsCalculator.EllipticalShapePointProvider
- extends Object
- implements EllipticalGroupBoundsCalculator.ShapePointProvider
A simple default implementation of EllipticalGroupBoundsCalculator.ShapePointProvider
that assumes
elliptical node shapes. This implementation will yield a flattened path view of the elliptical bounds of the
nodes.
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EllipticalGroupBoundsCalculator.EllipticalShapePointProvider
public EllipticalGroupBoundsCalculator.EllipticalShapePointProvider()
getShapePoints
public List getShapePoints(LayoutGraph graph,
Node node)
- Description copied from interface:
EllipticalGroupBoundsCalculator.ShapePointProvider
- Retrieves the list of points that make up the (convex) hull of the visual representation of the given node.
- Specified by:
getShapePoints
in interface EllipticalGroupBoundsCalculator.ShapePointProvider
- 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.