treebolic.provider.wn
Class WordNode

java.lang.Object
  extended by treebolic.model.NodeData
      extended by treebolic.model.XNodeData
          extended by treebolic.model.Node
              extended by treebolic.model.MutableNode
                  extended by treebolic.provider.wn.Node
                      extended by treebolic.provider.wn.WordNode
All Implemented Interfaces:
INode

public class WordNode
extends Node

Item node

Author:
Bernard Bou

Field Summary
private static java.awt.Image theImage
          Image
private  java.lang.String theLink
          Link
private  edu.princeton.wordnet.Synset theSynset
          Synset
private static java.awt.Color[] theWordBackColors
          Item background colors
private static java.awt.Color theWordForeColor
          Item foreground color
 
Fields inherited from class treebolic.model.Node
theChildren, theParent
 
Fields inherited from class treebolic.model.XNodeData
theEdgeImage, theMountPoint
 
Fields inherited from class treebolic.model.NodeData
theBackColor, theContent, theEdgeColor, theEdgeImageFile, theEdgeLabel, theEdgeStyle, theForeColor, theId, theImageFile, theLabel, theTarget
 
Constructor Summary
WordNode(Node thisParentNode, java.lang.String thisWord, edu.princeton.wordnet.Synset thisSynset, int thisLevel)
          Constructor
 
Method Summary
 java.lang.String getContent()
          Get node content
 java.lang.String getLink()
          Get URL link
 
Methods inherited from class treebolic.provider.wn.Node
makeNodeId
 
Methods inherited from class treebolic.model.MutableNode
setBackColor, setContent, setEdgeColor, setEdgeImageFile, setEdgeLabel, setEdgeStyle, setForeColor, setImageFile, setLabel, setLink, setTarget
 
Methods inherited from class treebolic.model.Node
getChildren, getParent, setParent
 
Methods inherited from class treebolic.model.XNodeData
getChildrenWeight, getEdgeImage, getImage, getLocation, getMinWeight, getMountPoint, getWeight, setChildrenWeight, setEdgeImage, setImage, setMinWeight, setMountPoint, setWeight
 
Methods inherited from class treebolic.model.NodeData
getBackColor, getEdgeColor, getEdgeImageFile, getEdgeLabel, getEdgeStyle, getForeColor, getId, getImageFile, getLabel, getTarget, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface treebolic.model.INode
getBackColor, getChildrenWeight, getEdgeColor, getEdgeImage, getEdgeImageFile, getEdgeLabel, getEdgeStyle, getForeColor, getId, getImage, getImageFile, getLabel, getLocation, getMinWeight, getMountPoint, getTarget, getWeight, setChildrenWeight, setEdgeImage, setImage, setMinWeight, setMountPoint, setWeight
 

Field Detail

theSynset

private edu.princeton.wordnet.Synset theSynset
Synset


theLink

private java.lang.String theLink
Link


theImage

private static final java.awt.Image theImage
Image


theWordForeColor

private static final java.awt.Color theWordForeColor
Item foreground color


theWordBackColors

private static final java.awt.Color[] theWordBackColors
Item background colors

Constructor Detail

WordNode

public WordNode(Node thisParentNode,
                java.lang.String thisWord,
                edu.princeton.wordnet.Synset thisSynset,
                int thisLevel)
Constructor

Parameters:
thisParentNode - parent node
thisWord - target word
thisSynset - synset
thisLevel - recursion level
Method Detail

getContent

public java.lang.String getContent()
Description copied from interface: INode
Get node content

Specified by:
getContent in interface INode
Overrides:
getContent in class NodeData
Returns:
node content as string

getLink

public java.lang.String getLink()
Description copied from interface: INode
Get URL link

Specified by:
getLink in interface INode
Overrides:
getLink in class NodeData
Returns:
URL link