edu.princeton.wordnet.browser.tree.renderers.domw3c.wordnet
Class SampleDecorator

java.lang.Object
  extended by edu.princeton.wordnet.browser.tree.renderers.domw3c.DefaultDecorator
      extended by edu.princeton.wordnet.browser.tree.renderers.domw3c.wordnet.SampleDecorator

public class SampleDecorator
extends DefaultDecorator

Sample node decorator

Author:
Bernard Bou

Field Summary
private static javax.swing.ImageIcon theIcon
          Icon
private static javax.swing.text.SimpleAttributeSet theNameStyle
          Style for name
private static javax.swing.text.SimpleAttributeSet theValueStyle
          Style for data
 
Fields inherited from class edu.princeton.wordnet.browser.tree.renderers.domw3c.DefaultDecorator
theNode
 
Constructor Summary
SampleDecorator(org.w3c.dom.Node thisNode)
          Constructor
 
Method Summary
 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 edu.princeton.wordnet.browser.tree.renderers.domw3c.DefaultDecorator
childrenToString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

theNameStyle

private static javax.swing.text.SimpleAttributeSet theNameStyle
Style for name


theValueStyle

private static javax.swing.text.SimpleAttributeSet theValueStyle
Style for data


theIcon

private static javax.swing.ImageIcon theIcon
Icon

Constructor Detail

SampleDecorator

public SampleDecorator(org.w3c.dom.Node thisNode)
Constructor

Parameters:
thisNode - node
Method Detail

getName

public java.lang.String getName()
Description copied from class: DefaultDecorator
Get node name

Overrides:
getName in class DefaultDecorator
Returns:
node name

getValue

public java.lang.String getValue()
Description copied from class: DefaultDecorator
Get node data

Overrides:
getValue in class DefaultDecorator
Returns:
node data

getNameStyle

public javax.swing.text.SimpleAttributeSet getNameStyle()
Description copied from class: DefaultDecorator
Get name style

Overrides:
getNameStyle in class DefaultDecorator
Returns:
value style

getValueStyle

public javax.swing.text.SimpleAttributeSet getValueStyle()
Description copied from class: DefaultDecorator
Get value style

Overrides:
getValueStyle in class DefaultDecorator
Returns:
value style

getIcon

public javax.swing.Icon getIcon()
Description copied from class: DefaultDecorator
Get icon for node

Overrides:
getIcon in class DefaultDecorator
Returns:
icon