Search this API

y.layout.tree
Class BalloonLayouter.NodeInfo

java.lang.Object
  extended by y.layout.tree.BalloonLayouter.NodeInfo
Enclosing class:
BalloonLayouter

public static class BalloonLayouter.NodeInfo
extends java.lang.Object

Encapsulates information bound to a node while the algorithm calculates a layout.

 
Your browser does not support SVG content.

Field Summary
 double dist
          The distance of the node to its root node.
 double gapAngle
          The angle of the gap to the wedge of the previous child node.
 double lowerAngle
          The lower angle of the subtree wedge rooted at the node.
 double upperAngle
          The upper angle of the subtree wedge rooted at the node.
 
Method Summary
 double getAngleSum()
          Returns the sum of all wedge angles of the subtree rooted at this node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

upperAngle

public double upperAngle
The upper angle of the subtree wedge rooted at the node.


lowerAngle

public double lowerAngle
The lower angle of the subtree wedge rooted at the node.


gapAngle

public double gapAngle
The angle of the gap to the wedge of the previous child node.


dist

public double dist
The distance of the node to its root node.

Method Detail

getAngleSum

public double getAngleSum()
Returns the sum of all wedge angles of the subtree rooted at this node.

Returns:
the sum of upperAngle, lowerAngle and gapAngle

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