JGraph
v5.13.0.0


com.jgraph.layout.tree
Class JGraphAbstractTreeLayout.TreeNode

java.lang.Object
  extended by com.jgraph.layout.tree.JGraphAbstractTreeLayout.TreeNode
Direct Known Subclasses:
JGraphCompactTreeLayout.CompactTreeNode, JGraphTreeLayout.StandardTreeNode
Enclosing class:
JGraphAbstractTreeLayout

protected class JGraphAbstractTreeLayout.TreeNode
extends Object

An ADT representing a node in a tree structure.


Field Summary
protected  Object cell
          The graph cell this node corresponds to
protected  double height
          The height of this node
protected  double width
          The width of this node
protected  double x
          The position location of this node
protected  double y
           
 
Constructor Summary
JGraphAbstractTreeLayout.TreeNode(Object cell)
          Creates tree node corresponding to the specified cell
 
Method Summary
 double getWidth()
           
protected  void routeEdges(Point2D parent)
          Routes edges between level so the edge descends halfway down to the next level of cells, moves across to above the cell and then descends to join the cell
 void setWidth(double width)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

width

protected double width
The width of this node


height

protected double height
The height of this node


x

protected double x
The position location of this node


y

protected double y

cell

protected Object cell
The graph cell this node corresponds to

Constructor Detail

JGraphAbstractTreeLayout.TreeNode

public JGraphAbstractTreeLayout.TreeNode(Object cell)
Creates tree node corresponding to the specified cell

Parameters:
cell - the cell this tree node corresponds to
Method Detail

routeEdges

protected void routeEdges(Point2D parent)
Routes edges between level so the edge descends halfway down to the next level of cells, moves across to above the cell and then descends to join the cell


getWidth

public double getWidth()
Returns:
the width

setWidth

public void setWidth(double width)
Parameters:
width - the width to set

JGraph
v5.13.0.0


Copyright (C) 2001-2009 JGraph Ltd. All rights reserved.