edu.princeton.wordnet.browser.tree.renderers.dom4j
Class TextDecorator

java.lang.Object
  extended by edu.princeton.wordnet.browser.tree.renderers.dom4j.DefaultDecorator
      extended by edu.princeton.wordnet.browser.tree.renderers.dom4j.TextDecorator

public class TextDecorator
extends DefaultDecorator

Decorates text node

Author:
Bernard Bou

Field Summary
private static javax.swing.ImageIcon theIcon
          Icon
 
Fields inherited from class edu.princeton.wordnet.browser.tree.renderers.dom4j.DefaultDecorator
theNode
 
Constructor Summary
TextDecorator(org.dom4j.Node thisNode)
          Constructor
 
Method Summary
 javax.swing.Icon getIcon()
          Get icon for node
 java.lang.String getName()
          Get node name
 
Methods inherited from class edu.princeton.wordnet.browser.tree.renderers.dom4j.DefaultDecorator
childrenToString, getNameStyle, getValue, getValueStyle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

theIcon

private static javax.swing.ImageIcon theIcon
Icon

Constructor Detail

TextDecorator

public TextDecorator(org.dom4j.Node thisNode)
Constructor

Parameters:
thisNode - node to decorate
Method Detail

getName

public java.lang.String getName()
Get node name

Overrides:
getName in class DefaultDecorator
Returns:
node name

getIcon

public javax.swing.Icon getIcon()
Get icon for node

Overrides:
getIcon in class DefaultDecorator
Returns:
icon