|
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
public class DefaultNodeInfo
DefaultNodeInfo.
| Constructor Summary | |
|---|---|
DefaultNodeInfo()
|
|
| Method Summary | |
|---|---|
void |
addChangeListener(javax.swing.event.ChangeListener l)
|
protected void |
fireStateChanged()
|
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)
Removes a change listener from the button. |
void |
toggleColorWeighter()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultNodeInfo()
| Method Detail |
|---|
public java.lang.String getName(TreePath2<TreeNode> path)
NodeInfo
getName in interface NodeInfopublic java.awt.Color getColor(TreePath2<TreeNode> path)
NodeInfo
getColor in interface NodeInfopublic long getWeight(TreePath2<TreeNode> path)
NodeInfo
getWeight in interface NodeInfopublic java.lang.String getTooltip(TreePath2<TreeNode> path)
NodeInfo
getTooltip in interface NodeInfopublic java.awt.Image getImage(TreePath2<TreeNode> path)
NodeInfo
getImage in interface NodeInfopublic void init(TreeNode root)
NodeInfo
init in interface NodeInfopublic Weighter getWeighter()
getWeighter in interface NodeInfopublic Colorizer getColorizer()
getColorizer in interface NodeInfopublic void addChangeListener(javax.swing.event.ChangeListener l)
addChangeListener in interface NodeInfopublic void removeChangeListener(javax.swing.event.ChangeListener l)
removeChangeListener in interface NodeInfoprotected void fireStateChanged()
public java.lang.String getWeightFormatted(TreePath2<TreeNode> path)
NodeInfo
getWeightFormatted in interface NodeInfopublic void toggleColorWeighter()
toggleColorWeighter in interface NodeInfopublic long getCumulatedWeight(TreePath2<TreeNode> path)
NodeInfo
getCumulatedWeight in interface NodeInfo
|
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 | ||||||||