treebolic.provider.wn
Class SenseNode

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.SenseNode
All Implemented Interfaces:
INode

public class SenseNode
extends Node

Sense node

Author:
Bernard Bou

Field Summary
private static java.awt.Image theImage
          Image
private static java.awt.Color theSenseBackColor
          Background color
private static java.awt.Color theSenseForeColor
          Foreground color
private  edu.princeton.wordnet.Synset theSynset
          Synset
 
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, theLink, theTarget
 
Constructor Summary
SenseNode(Node thisParentNode, int thisSenseIdx, edu.princeton.wordnet.Synset thisSynset)
          Constructor
 
Method Summary
 java.lang.String getContent()
          Get node content
 
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, getLink, 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, getLink, getLocation, getMinWeight, getMountPoint, getTarget, getWeight, setChildrenWeight, setEdgeImage, setImage, setMinWeight, setMountPoint, setWeight
 

Field Detail

theSynset

private edu.princeton.wordnet.Synset theSynset
Synset


theImage

private static final java.awt.Image theImage
Image


theSenseBackColor

private static final java.awt.Color theSenseBackColor
Background color


theSenseForeColor

private static final java.awt.Color theSenseForeColor
Foreground color

Constructor Detail

SenseNode

public SenseNode(Node thisParentNode,
                 int thisSenseIdx,
                 edu.princeton.wordnet.Synset thisSynset)
Constructor

Parameters:
thisParentNode - parent node
thisSenseIdx - sense index
thisSynset - synset
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