Class JGraphCompactTreeLayout.CompactTreeNode
java.lang.Object
com.jgraph.layout.tree.JGraphAbstractTreeLayout.TreeNode
com.jgraph.layout.tree.JGraphCompactTreeLayout.CompactTreeNode
- Enclosing class:
JGraphCompactTreeLayout
Abstraction of node in a tree structure
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected doubleThe offset of this node from the root nodeprotected double -
Constructor Summary
ConstructorsConstructorDescriptionCompactTreeNode(Object cell) Creates a node corresponding to the specified graph cell and of the given dimensions. -
Method Summary
Methods inherited from class JGraphAbstractTreeLayout.TreeNode
getWidth, routeEdges, setWidth
-
Field Details
-
offsetX
protected double offsetXThe offset of this node from the root node -
offsetY
protected double offsetY
-
-
Constructor Details
-
CompactTreeNode
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
- Returns:
- the graph cell associated with this node
-