|
Treeviz 0.37 2010-10-17 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectch.randelshofer.tree.DefaultNodeInfo
ch.randelshofer.tree.demo.FileNodeInfo
public class FileNodeInfo
FileNodeInfo.
| Constructor Summary | |
|---|---|
FileNodeInfo()
Creates a new instance. |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class ch.randelshofer.tree.DefaultNodeInfo |
|---|
addChangeListener, fireStateChanged, getCumulatedWeight, getImage, removeChangeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileNodeInfo()
| Method Detail |
|---|
public void init(TreeNode root)
NodeInfo
init 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)
NodeInfo
getWeight in interface NodeInfogetWeight in class DefaultNodeInfopublic java.awt.Color getColor(TreePath2<TreeNode> path)
NodeInfo
getColor in interface NodeInfogetColor in class DefaultNodeInfopublic java.lang.String getName(TreePath2<TreeNode> path)
NodeInfo
getName in interface NodeInfogetName in class DefaultNodeInfopublic java.lang.String getTooltip(TreePath2<TreeNode> path)
NodeInfo
getTooltip in interface NodeInfogetTooltip in class DefaultNodeInfopublic java.lang.String getWeightFormatted(TreePath2<TreeNode> path)
NodeInfo
getWeightFormatted in interface NodeInfogetWeightFormatted in class DefaultNodeInfopublic void toggleColorWeighter()
toggleColorWeighter in interface NodeInfotoggleColorWeighter in class DefaultNodeInfo
|
Copyright 2007-2008 (c) Werner Randelshofer. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||