public class FileNodeInfo extends DefaultNodeInfo
| Constructor and Description |
|---|
FileNodeInfo()
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
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() |
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 |
toggleColorWeighter() |
addChangeListener, fireStateChanged, getCumulatedWeight, getImage, removeChangeListenerpublic void init(TreeNode root)
NodeInfoinit in interface NodeInfoinit in class DefaultNodeInfopublic Weighter getWeighter()
getWeighter in interface NodeInfogetWeighter in class DefaultNodeInfopublic Colorizer getColorizer()
getColorizer in interface NodeInfogetColorizer in class DefaultNodeInfopublic long getWeight(TreePath2<TreeNode> path)
NodeInfogetWeight in interface NodeInfogetWeight in class DefaultNodeInfopublic java.awt.Color getColor(TreePath2<TreeNode> path)
NodeInfogetColor in interface NodeInfogetColor in class DefaultNodeInfopublic java.lang.String getName(TreePath2<TreeNode> path)
NodeInfogetName in interface NodeInfogetName in class DefaultNodeInfopublic java.lang.String getTooltip(TreePath2<TreeNode> path)
NodeInfogetTooltip in interface NodeInfogetTooltip in class DefaultNodeInfopublic java.lang.String getWeightFormatted(TreePath2<TreeNode> path)
NodeInfogetWeightFormatted in interface NodeInfogetWeightFormatted in class DefaultNodeInfopublic void toggleColorWeighter()
toggleColorWeighter in interface NodeInfotoggleColorWeighter in class DefaultNodeInfopublic javax.swing.Action[] getActions(TreePath2<TreeNode> path)
NodeInfogetActions in interface NodeInfogetActions in class DefaultNodeInfo