pivot.wtk.skin.terra
Class TerraTreeViewSkin.NodeInfo
java.lang.Object
pivot.wtk.skin.terra.TerraTreeViewSkin.NodeInfo
- Direct Known Subclasses:
- TerraTreeViewSkin.BranchInfo
- Enclosing class:
- TerraTreeViewSkin
protected static class TerraTreeViewSkin.NodeInfo
- extends Object
An internal data structure that keeps track of skin-related metadata
for a tree node. The justification for the existence of this class lies
in the visibleNodes data structure, which is a flat list of
nodes that are visible at any given time. In this context, visible means
that their parent hierarchy is expanded, not that they are being
painted. This list, combined with getNodeHeight(), enables us
to quickly determine which nodes to paint given a graphics clip rect.
It also enables us to quickly traverse the tree view when handling key
events.
NOTE: some of this data is managed by TreeView and cached here
to provide further optimizations during painting and user input.
- Author:
- tvolkert
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
data
protected Object data
depth
protected int depth
fields
protected byte fields
HIGHLIGHTED_MASK
public static final byte HIGHLIGHTED_MASK
- See Also:
- Constant Field Values
SELECTED_MASK
public static final byte SELECTED_MASK
- See Also:
- Constant Field Values
DISABLED_MASK
public static final byte DISABLED_MASK
- See Also:
- Constant Field Values
CHECK_STATE_CHECKED_MASK
public static final byte CHECK_STATE_CHECKED_MASK
- See Also:
- Constant Field Values
CHECK_STATE_MIXED_MASK
public static final byte CHECK_STATE_MIXED_MASK
- See Also:
- Constant Field Values
CHECK_STATE_MASK
public static final byte CHECK_STATE_MASK
- See Also:
- Constant Field Values
TerraTreeViewSkin.NodeInfo
public TerraTreeViewSkin.NodeInfo(TerraTreeViewSkin.BranchInfo parent,
Object data)
createNew
public static TerraTreeViewSkin.NodeInfo createNew(TerraTreeViewSkin.BranchInfo parent,
Object data)
getPath
public Sequence.Tree.Path getPath()
isHighlighted
public boolean isHighlighted()
setHighlighted
public void setHighlighted(boolean highlighted)
isSelected
public boolean isSelected()
setSelected
public void setSelected(boolean selected)
isDisabled
public boolean isDisabled()
setDisabled
public void setDisabled(boolean disabled)
getCheckState
public TreeView.NodeCheckState getCheckState()
isChecked
public boolean isChecked()
setCheckState
public void setCheckState(TreeView.NodeCheckState checkState)
clearField
public void clearField(byte mask)