edu.princeton.wordnet.browser.tree.renderers.pojos
Class DefaultDecorator

java.lang.Object
  extended by edu.princeton.wordnet.browser.tree.renderers.pojos.DefaultDecorator
Direct Known Subclasses:
LinkDecorator, PlainDecorator

public class DefaultDecorator
extends java.lang.Object

Node decorator

Author:
Bernard Bou

Field Summary
static Style theDefaultStyle
          Default name style
protected  java.lang.Object theObject
          Object to decorate
 
Constructor Summary
DefaultDecorator(java.lang.Object thisObject)
          Constructor
 
Method Summary
protected  java.lang.String childrenToString()
          Convert children's value to string
 javax.swing.Icon getIcon()
          Get icon for node
 java.lang.String getName()
          Get node name
 javax.swing.text.SimpleAttributeSet getNameStyle()
          Get name style
 java.lang.String getValue()
          Get node data
 javax.swing.text.SimpleAttributeSet getValueStyle()
          Get value style
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

theDefaultStyle

public static Style theDefaultStyle
Default name style


theObject

protected java.lang.Object theObject
Object to decorate

Constructor Detail

DefaultDecorator

public DefaultDecorator(java.lang.Object thisObject)
Constructor

Parameters:
thisObject - object to decorate
Method Detail

getName

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

Returns:
node name

getValue

public java.lang.String getValue()
Get node data

Returns:
node data

getNameStyle

public javax.swing.text.SimpleAttributeSet getNameStyle()
Get name style

Returns:
value style

getValueStyle

public javax.swing.text.SimpleAttributeSet getValueStyle()
Get value style

Returns:
value style

getIcon

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

Returns:
icon

childrenToString

protected java.lang.String childrenToString()
Convert children's value to string

Returns:
string