protected static class BasicTreeLayout.NodeLayout extends Object
Modifier and Type | Field and Description |
---|---|
protected Rectangle |
bounds
Node bounds, relative to the bottom left corner of the tree.
|
protected Point |
drawPoint
Point at which the next component should be drawn.
|
protected TreeNode |
node
Node that this layout applies to.
|
protected int |
numLines
Number of lines of wrapped description text in this layout.
|
protected Rectangle |
pickBounds |
protected Rectangle |
pickScreenBounds |
protected Rectangle |
screenBounds
Node bounds relative to the bottom left corner of the viewport.
|
protected int |
textWrapWidth
The width used to wrap the description text.
|
protected String |
wrappedText
Wrapped version of the node description text.
|
Modifier | Constructor and Description |
---|---|
protected |
NodeLayout(TreeNode node)
Create a new node layout.
|
Modifier and Type | Method and Description |
---|---|
protected void |
reset(Point treePoint)
Reset the draw point to the lower left corner of the node bounds.
|
protected Rectangle bounds
protected Point drawPoint
protected TreeNode node
protected int numLines
protected Rectangle pickBounds
protected Rectangle pickScreenBounds
protected Rectangle screenBounds
reset(java.awt.Point)
.protected int textWrapWidth
protected String wrappedText
protected NodeLayout(TreeNode node)
node
- Node that is being laid out.protected void reset(Point treePoint)
treePoint
- location of the lower left corner of the tree, measured in GL coordinates (origin lower left
corner of the screen).