treebolic.provider.wn
Class WordNode
java.lang.Object
treebolic.model.NodeData
treebolic.model.XNodeData
treebolic.model.Node
treebolic.model.MutableNode
treebolic.provider.wn.Node
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.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.model.MutableNode |
setBackColor, setContent, setEdgeColor, setEdgeImageFile, setEdgeLabel, setEdgeStyle, setForeColor, setImageFile, setLabel, setLink, setTarget |
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 |
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
WordNode
public WordNode(Node thisParentNode,
java.lang.String thisWord,
edu.princeton.wordnet.Synset thisSynset,
int thisLevel)
- Constructor
- Parameters:
thisParentNode
- parent nodethisWord
- target wordthisSynset
- synsetthisLevel
- recursion level
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