JGraph
v5.13.0.4


com.jgraph.layout.tree
Class JGraphCompactTreeLayout.CompactTreeNode

java.lang.Object
  extended by com.jgraph.layout.tree.JGraphAbstractTreeLayout.TreeNode
      extended by com.jgraph.layout.tree.JGraphCompactTreeLayout.CompactTreeNode
Enclosing class:
JGraphCompactTreeLayout

protected class JGraphCompactTreeLayout.CompactTreeNode
extends JGraphAbstractTreeLayout.TreeNode

Abstraction of node in a tree structure


Field Summary
protected  double offsetX
          The offset of this node from the root node
protected  double offsetY
           
 
Fields inherited from class com.jgraph.layout.tree.JGraphAbstractTreeLayout.TreeNode
cell, height, width, x, y
 
Constructor Summary
JGraphCompactTreeLayout.CompactTreeNode(java.lang.Object cell)
          Creates a node corresponding to the specified graph cell and of the given dimensions.
 
Method Summary
 java.lang.Object getCell()
           
 
Methods inherited from class com.jgraph.layout.tree.JGraphAbstractTreeLayout.TreeNode
getWidth, routeEdges, setWidth
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

offsetX

protected double offsetX
The offset of this node from the root node


offsetY

protected double offsetY
Constructor Detail

JGraphCompactTreeLayout.CompactTreeNode

public JGraphCompactTreeLayout.CompactTreeNode(java.lang.Object cell)
Creates a node corresponding to the specified graph cell and of the given dimensions. Interally, the width and height are stored reversed for a horizontal tree to reduce the processing required when laying the tree out

Parameters:
cell - the corresponding graph cell
Method Detail

getCell

public java.lang.Object getCell()
Returns:
the graph cell associated with this node

JGraph
v5.13.0.4


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