treebolic.provider.wn
Class Node

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
All Implemented Interfaces:
INode
Direct Known Subclasses:
LinkNode, PosNode, SenseNode, WordNode

public class Node
extends MutableNode

Node

Author:
Bernard Bou

Field Summary
private static java.util.Random theRandomizer
          Randomize used to generate ids
 
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
Node(Node thisParentNode, java.lang.String thisLabel, java.awt.Image thisImage, java.awt.Color thisBackColor, java.awt.Color thisForeColor)
          Constructor
 
Method Summary
static java.lang.String makeNodeId()
          Make node id
 
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, getContent, 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, getContent, getEdgeColor, getEdgeImage, getEdgeImageFile, getEdgeLabel, getEdgeStyle, getForeColor, getId, getImage, getImageFile, getLabel, getLink, getLocation, getMinWeight, getMountPoint, getTarget, getWeight, setChildrenWeight, setEdgeImage, setImage, setMinWeight, setMountPoint, setWeight
 

Field Detail

theRandomizer

private static java.util.Random theRandomizer
Randomize used to generate ids

Constructor Detail

Node

public Node(Node thisParentNode,
            java.lang.String thisLabel,
            java.awt.Image thisImage,
            java.awt.Color thisBackColor,
            java.awt.Color thisForeColor)
Constructor

Parameters:
thisParentNode - parent node
thisLabel - label
thisImage - image
thisBackColor - backcolor
thisForeColor - forecolor
Method Detail

makeNodeId

public static java.lang.String makeNodeId()
Make node id

Returns:
node id