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

java.lang.Object
  extended by edu.princeton.wordnet.browser.tree.renderers.pojos.DefaultDecorator
      extended by edu.princeton.wordnet.browser.tree.renderers.pojos.PlainDecorator
Direct Known Subclasses:
AdjPositionDecorator, CasedWordDecorator, CaseWordsDecorator, DefinitionDecorator, LazyDecorator, LexDomainDecorator, LexLinkDecorator, MorphDecorator, MorphsDecorator, PosDecorator, QualifiedMorphDecorator, QueryDecorator, SampleDecorator, SemLinkDecorator, SenseDecorator, SynsetDecorator, VerbFrameDecorator, VerbFrameSentenceDecorator, WordDecorator

public class PlainDecorator
extends DefaultDecorator

Definition node decorator

Author:
Bernard Bou

Field Summary
 Style theStyle
          Style for data
 
Fields inherited from class edu.princeton.wordnet.browser.tree.renderers.pojos.DefaultDecorator
theDefaultStyle, theObject
 
Constructor Summary
PlainDecorator(java.lang.Object thisNode, MappedStyle thisStyle)
          Constructor
 
Method Summary
 javax.swing.Icon getIcon()
          Get icon for node
 javax.swing.text.SimpleAttributeSet getNameStyle()
          Get name style
 javax.swing.text.SimpleAttributeSet getValueStyle()
          Get value style
 
Methods inherited from class edu.princeton.wordnet.browser.tree.renderers.pojos.DefaultDecorator
childrenToString, getName, getValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

theStyle

public Style theStyle
Style for data

Constructor Detail

PlainDecorator

public PlainDecorator(java.lang.Object thisNode,
                      MappedStyle thisStyle)
Constructor

Parameters:
thisNode - node
thisStyle - style
Method Detail

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