Class JGraphCompactTreeLayout.CompactTreeNode

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

protected class JGraphCompactTreeLayout.CompactTreeNode extends JGraphAbstractTreeLayout.TreeNode
Abstraction of node in a tree structure
  • Field Details

    • offsetX

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

      protected double offsetY
  • Constructor Details

    • CompactTreeNode

      public 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 Details

    • getCell

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