protected static class AbstractDynamicLayout.TNode
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
Dimension |
bottomRightCellOffsets
Cell offsets
|
java.util.List<AbstractDynamicLayout.RowInfo> |
columns
Sub widgets grouped in columns
|
java.lang.Boolean |
dynamic
Cached callculated dynamic flag
|
boolean |
initDimsUpdated
A helper flag used during updating the widget initial location and dimensions
|
Dimension |
initialDim
Widget initial dimensions
|
Point |
initialLoc
Widget initial location
|
boolean |
isAdmPageFrame
Whether this widget is ADM page frame
|
Dimension |
minSize
The min container size
|
java.util.LinkedList<AbstractDynamicLayout.TNode> |
nodes
Sub-nodes
|
AbstractDynamicLayout.TNode |
parent
Parent node
|
java.util.List<AbstractDynamicLayout.RowInfo> |
rows
Sub widgets grouped in rows
|
Dimension |
topLeftCellOffsets
Cell offsets
|
Widget |
w
The wrapped widget
|
com.google.common.collect.TreeMultimap<java.lang.Double,AbstractDynamicLayout.TNode> |
xWidgets
Horizontal cached data
|
com.google.common.collect.TreeMultimap<java.lang.Double,AbstractDynamicLayout.TNode> |
yWidgets
Vertical cached data
|
Constructor and Description |
---|
TNode(AbstractDynamicLayout.TNode parent,
Widget w)
Default ctor.
|
Modifier and Type | Method and Description |
---|---|
private void |
addToLocationIndex(AbstractDynamicLayout.TNode widget)
Adds the supplied widget to the location indexes.
|
java.lang.String |
formatNode()
Returns string representation of the node.
|
java.lang.String |
formatTree()
Returns string representation of the whole tree.
|
private void |
formatTree(int level,
java.lang.StringBuilder sb)
Returns string representation of the whole tree.
|
public final AbstractDynamicLayout.TNode parent
public final Widget w
public Point initialLoc
public Dimension initialDim
public boolean initDimsUpdated
public java.util.LinkedList<AbstractDynamicLayout.TNode> nodes
public com.google.common.collect.TreeMultimap<java.lang.Double,AbstractDynamicLayout.TNode> xWidgets
public com.google.common.collect.TreeMultimap<java.lang.Double,AbstractDynamicLayout.TNode> yWidgets
public java.lang.Boolean dynamic
public java.util.List<AbstractDynamicLayout.RowInfo> rows
public java.util.List<AbstractDynamicLayout.RowInfo> columns
public Dimension minSize
public Dimension topLeftCellOffsets
public Dimension bottomRightCellOffsets
public boolean isAdmPageFrame
public TNode(AbstractDynamicLayout.TNode parent, Widget w)
parent
- Parent node.w
- The widget this node will wrap.private void addToLocationIndex(AbstractDynamicLayout.TNode widget)
widget
- The widget to add.public java.lang.String formatNode()
public java.lang.String formatTree()
private void formatTree(int level, java.lang.StringBuilder sb)
level
- Tree level.sb
- String output.