public class XMLNodeInfo extends AbstractNodeInfo
AbstractNodeInfo.DataType| Constructor and Description |
|---|
XMLNodeInfo()
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChangeListener(javax.swing.event.ChangeListener l) |
void |
collectAttributesRecursively(XMLNode node,
java.util.HashMap<java.lang.String,java.util.HashSet<java.lang.String>> attrMap) |
void |
computeStats(XMLNode root,
java.util.HashMap<java.lang.String,AbstractNodeInfo.DataType> typeMap,
java.util.HashMap<java.lang.String,java.util.HashSet<java.lang.String>> attrMap) |
protected void |
fireStateChanged() |
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() |
Weighter |
getColorWeighter() |
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.
|
AbstractNodeInfo.DataType |
getType(java.lang.String key) |
java.util.Set<java.lang.String> |
getValues(java.lang.String key) |
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 |
init(XMLNode root) |
void |
removeChangeListener(javax.swing.event.ChangeListener l)
Removes a change listener from the button.
|
void |
toggleColorWeighter() |
determineDataTypepublic void init(TreeNode root)
NodeInfopublic java.lang.String getName(TreePath2<TreeNode> path)
NodeInfopublic java.awt.Color getColor(TreePath2<TreeNode> path)
NodeInfopublic long getCumulatedWeight(TreePath2<TreeNode> path)
NodeInfopublic long getWeight(TreePath2<TreeNode> path)
NodeInfopublic Weighter getColorWeighter()
public java.lang.String getTooltip(TreePath2<TreeNode> path)
NodeInfopublic java.awt.Image getImage(TreePath2<TreeNode> path)
NodeInfopublic Weighter getWeighter()
public Colorizer getColorizer()
public void init(XMLNode root)
public void computeStats(XMLNode root, java.util.HashMap<java.lang.String,AbstractNodeInfo.DataType> typeMap, java.util.HashMap<java.lang.String,java.util.HashSet<java.lang.String>> attrMap)
public void collectAttributesRecursively(XMLNode node, java.util.HashMap<java.lang.String,java.util.HashSet<java.lang.String>> attrMap)
public AbstractNodeInfo.DataType getType(java.lang.String key)
public java.util.Set<java.lang.String> getValues(java.lang.String key)
public void addChangeListener(javax.swing.event.ChangeListener l)
public void removeChangeListener(javax.swing.event.ChangeListener l)
protected void fireStateChanged()
public java.lang.String getWeightFormatted(TreePath2<TreeNode> path)
NodeInfopublic void toggleColorWeighter()