public interface NodeInfo
TreeNode.
All methods of NodeInfo take a path to a node as a parameter. This allows to get an interperation of a node based on more criteria than just on the node alone.
| Modifier and Type | Method and Description |
|---|---|
void |
addChangeListener(javax.swing.event.ChangeListener l) |
javax.swing.Action[] |
getActions(TreePath2<TreeNode> path)
Returns actions for the specified node.
|
java.awt.Color |
getColor(TreePath2<TreeNode> path)
Returns the color of the node.
|
Colorizer |
getColorizer() |
long |
getCumulatedWeight(TreePath2<TreeNode> path)
Returns the cumulated weight of a node (the sum of the weights of this
node and of all its children).
|
java.awt.Image |
getImage(TreePath2<TreeNode> path)
Returns the image of the node.
|
java.lang.String |
getName(TreePath2<TreeNode> path)
Returns the name of the node.
|
java.lang.String |
getTooltip(TreePath2<TreeNode> path)
Returns the tooltip of the node.
|
long |
getWeight(TreePath2<TreeNode> path)
Returns the weight of a node.
|
Weighter |
getWeighter() |
java.lang.String |
getWeightFormatted(TreePath2<TreeNode> path)
Returns the string formatted weight of a node.
|
void |
init(TreeNode root)
Initializes the node info.
|
void |
removeChangeListener(javax.swing.event.ChangeListener l) |
void |
toggleColorWeighter() |
void init(TreeNode root)
root - long getWeight(TreePath2<TreeNode> path)
long getCumulatedWeight(TreePath2<TreeNode> path)
java.lang.String getWeightFormatted(TreePath2<TreeNode> path)
javax.swing.Action[] getActions(TreePath2<TreeNode> path)
Weighter getWeighter()
Colorizer getColorizer()
void addChangeListener(javax.swing.event.ChangeListener l)
void removeChangeListener(javax.swing.event.ChangeListener l)
void toggleColorWeighter()