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 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.


Constructor Summary
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.
 
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()
Method Detail

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.

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