JGraphLayout
v1.4.0.2


com.jgraph.layout.tree
Class JGraphCompactTreeLayout.CompactTreeNode

java.lang.Object
  extended bycom.jgraph.layout.tree.JGraphAbstractTreeLayout.TreeNode
      extended bycom.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(Object cell)
          Creates a node corresponding to the specified graph cell and of the given dimensions.
 
Method Summary
 Object getCell()
           
 
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(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 Object getCell()
Returns:
the graph cell associated with this node

JGraphLayout
v1.4.0.2


Copyright (C) 2005 JGraph.com. All rights reserved.