com.jgraph.layout.tree

Class JGraphCompactTreeLayout.CompactTreeNode

protected class JGraphCompactTreeLayout.CompactTreeNode extends TreeNode

Abstraction of node in a tree structure
Field Summary
protected doubleoffsetX
The offset of this node from the root node
protected doubleoffsetY
Constructor Summary
CompactTreeNode(Object cell)
Creates a node corresponding to the specified graph cell and of the given dimensions.
Method Summary
ObjectgetCell()

Field Detail

offsetX

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

offsetY

protected double offsetY

Constructor Detail

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 Detail

getCell

public Object getCell()

Returns: the graph cell associated with this node

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