Class JGraphAbstractTreeLayout.TreeNode
java.lang.Object
com.jgraph.layout.tree.JGraphAbstractTreeLayout.TreeNode
- Direct Known Subclasses:
JGraphCompactTreeLayout.CompactTreeNode, JGraphTreeLayout.StandardTreeNode
- Enclosing class:
JGraphAbstractTreeLayout
An ADT representing a node in a tree structure.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublegetWidth()protected voidrouteEdges(Point2D parent) Routes edges between level so the edge descends halfway down to the next level of cells, moves across to above the cell and then descends to join the cellvoidsetWidth(double width)
-
Field Details
-
width
protected double widthThe width of this node -
height
protected double heightThe height of this node -
x
protected double xThe position location of this node -
y
protected double y -
cell
The graph cell this node corresponds to
-
-
Constructor Details
-
TreeNode
Creates tree node corresponding to the specified cell- Parameters:
cell- the cell this tree node corresponds to
-
-
Method Details
-
routeEdges
Routes edges between level so the edge descends halfway down to the next level of cells, moves across to above the cell and then descends to join the cell -
getWidth
public double getWidth()- Returns:
- the width
-
setWidth
public void setWidth(double width) - Parameters:
width- the width to set
-