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

java.lang.Object
  extended by edu.princeton.wordnet.browser.tree.renderers.pojos.DefaultDecorator
      extended by edu.princeton.wordnet.browser.tree.renderers.pojos.PlainDecorator
          extended by edu.princeton.wordnet.browser.tree.renderers.pojos.LexLinkDecorator

public class LexLinkDecorator
extends PlainDecorator

LexLink decorator

Author:
Bernard Bou

Field Summary
private static java.util.Map<java.lang.Integer,javax.swing.ImageIcon> theIcons
          Icons
 
Fields inherited from class edu.princeton.wordnet.browser.tree.renderers.pojos.PlainDecorator
theStyle
 
Fields inherited from class edu.princeton.wordnet.browser.tree.renderers.pojos.DefaultDecorator
theDefaultStyle, theObject
 
Constructor Summary
LexLinkDecorator(edu.princeton.wordnet.pojos.LexLink thisLexLink)
          Constructor
 
Method Summary
 javax.swing.Icon getIcon()
          Get icon for node
 edu.princeton.wordnet.pojos.LexLink getLexLink()
          Get semlink
 java.lang.String getName()
          Get node name
 java.lang.String getValue()
          Get node data
(package private) static java.util.Map<java.lang.Integer,javax.swing.ImageIcon> makeIcons()
          Make icon map
 
Methods inherited from class edu.princeton.wordnet.browser.tree.renderers.pojos.PlainDecorator
getNameStyle, getValueStyle
 
Methods inherited from class edu.princeton.wordnet.browser.tree.renderers.pojos.DefaultDecorator
childrenToString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

theIcons

private static java.util.Map<java.lang.Integer,javax.swing.ImageIcon> theIcons
Icons

Constructor Detail

LexLinkDecorator

public LexLinkDecorator(edu.princeton.wordnet.pojos.LexLink thisLexLink)
Constructor

Parameters:
thisLexLink - lex link
Method Detail

makeIcons

static java.util.Map<java.lang.Integer,javax.swing.ImageIcon> makeIcons()
Make icon map

Returns:
linkid-icon map

getLexLink

public edu.princeton.wordnet.pojos.LexLink getLexLink()
Get semlink

Returns:
semlink

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

getIcon

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

Overrides:
getIcon in class PlainDecorator
Returns:
icon