All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----MSBTree.RNode
Warning: This documentation is only for java programmers. If you are just using the Applet in a HTML page, please read Class MSBTree.RTreeApplet.
This class represents one single node in the tree. The following example creates a node an adds it to the tree:
RNode n=new RNode();
Tree.addFirstLevelNode(n);
See the documentation of the RTreeApplet if you are using the tree in a HTML page.
public boolean expanded
If expanded the children of the node are visible.
selected
public boolean selectedicon
public Image icon
Icon used for the node when it is not expanded.raisedEffectOnSelection
public boolean raisedEffectOnSelection
If true the node will adquire a "Raised effect" when the cursor is placed over it.expandedIcon
public Image expandedIcon
Icon used for the node when it is expanded.font
public Font font
Font used to draw the text.text
public String text
Text of the node.color
public Color color
Color of the text.selectedColor
public Color selectedColor
Color of the text when the node is selected.backColor
public Color backColor
background color of the node.selectedBackColor
public Color selectedBackColor
background color of the node when it is selected.Name
public String Name
Name of the node.userValue
public Object userValue
Any value you want to store in this node.parent
public RNode parent
Node's parent.tipText
public String tipText
text displayed when the cursor is over the node.childrenDefinitionLoaded
public boolean childrenDefinitionLoaded
if false, the definition file has not been read yet.childrenDefinitionFile
public String childrenDefinitionFile
File where the definition of the children of this node is to be found.backImage
public Image backImage
background image of the node.centerText
public boolean centerText
is the text of the node to be centered?xPos
public int xPos
internal use. Current position in the applet of the node.yPos
public int yPos
internal use. Current position in the applet.hSize
public int hSize
internal use. Current size in the applet.wSize
public int wSize
internal use. Current size in the applet.level
public int level
internal use. Level of the node. The root has level 0.
public RNode()
public void addChild(RNode c)
add a child to the node.deleteChild
public void deleteChild(int c)
delete a child from the node.deleteChildren
public void deleteChildren()
delete all children from the node.draw
public void draw(Graphics g, int x, int y, int h, int w)
internal use.getChild
public RNode getChild(int n)
returns the child at the specified position (1 is the first child).getChildrenNumber
public int getChildrenNumber()
returns number of children of this node.
hasChildren
public boolean hasChildren()
returns whether this node has children.
All Packages Class Hierarchy This Package Previous Next Index