Search this API

y.layout.organic
Class EllipticalGroupBoundsCalculator.EllipticalShapePointProvider

java.lang.Object
  extended by y.layout.organic.EllipticalGroupBoundsCalculator.EllipticalShapePointProvider
All Implemented Interfaces:
EllipticalGroupBoundsCalculator.ShapePointProvider
Enclosing class:
EllipticalGroupBoundsCalculator

public static final class EllipticalGroupBoundsCalculator.EllipticalShapePointProvider
extends java.lang.Object
implements EllipticalGroupBoundsCalculator.ShapePointProvider

This is a default implementation of EllipticalGroupBoundsCalculator.ShapePointProvider that assumes elliptical node shapes. It will yield a flattened path view of the elliptical bounds of the nodes.

 

Constructor Summary
EllipticalGroupBoundsCalculator.EllipticalShapePointProvider()
          Creates a new EllipticalGroupBoundsCalculator.EllipticalShapePointProvider instance.
 
Method Summary
 java.util.List getShapePoints(LayoutGraph graph, Node node)
          Retrieves a list of points representing the convex hull of the given node assuming an elliptical node shape.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EllipticalGroupBoundsCalculator.EllipticalShapePointProvider

public EllipticalGroupBoundsCalculator.EllipticalShapePointProvider()
Creates a new EllipticalGroupBoundsCalculator.EllipticalShapePointProvider instance.

Method Detail

getShapePoints

public java.util.List getShapePoints(LayoutGraph graph,
                                     Node node)
Retrieves a list of points representing the convex hull of the given node assuming an elliptical node shape.

Specified by:
getShapePoints in interface EllipticalGroupBoundsCalculator.ShapePointProvider
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 YPoint instances representing the convex hull of the elliptical node
See Also:
YPoint

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