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.
public boolean selected
public Image icon
Icon used for the node when it is not expanded.
public boolean raisedEffectOnSelection
If true the node will adquire a "Raised effect" when the cursor is placed over it.
public Image expandedIcon
Icon used for the node when it is expanded.
public Font font
Font used to draw the text.
public String text
Text of the node.
public Color color
Color of the text.
public Color selectedColor
Color of the text when the node is selected.
public Color backColor
background color of the node.
public Color selectedBackColor
background color of the node when it is selected.
public int submenuBorder
type of border of this node's submenu. Valid values are SBORDER_NO, SBORDER_LINE and SBORDER_RAISED.
public Color submenuBorderColor
color of the border of the node's submenu.
public Color submenuColor
color of the background of the node's submenu.
public boolean submenuInverted
is the node's submenu to be inverted. An inverted submenu is display from bottom to top.
public Image submenuImage
background image of this node's submenu.
public String Name
Name of the node.
public Object userValue
Any value you want to store in this node.
public RNode parent
Node's parent.
public String tipText
text displayed when the cursor is over the node.
public boolean childrenDefinitionLoaded
if false, the definition file has not been read yet.
public String childrenDefinitionFile
File where the definition of the children of this node is to be found.
public Image backImage
background image of the node.
public boolean centerText
is the text of the node to be centered?
public int xPos
internal use. Current position in the applet of the node.
public int yPos
internal use. Current position in the applet.
public int hSize
internal use. Current size in the applet.
public int wSize
internal use. Current size in the applet.
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.
public void deleteChild(int c)
delete a child from the node.
public void deleteChildren()
delete all children from the node.
public void draw(Graphics g, int x, int y, int h, int w)
internal use.
public RNode getChild(int n)
returns the child at the specified position (1 is the first child).
public int getChildrenNumber()
returns number of children of this node.
public boolean hasChildren()
returns whether this node has children.
All Packages Class Hierarchy This Package Previous Next Index