All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----java.awt.Component | +----java.awt.Container | +----java.awt.Panel | +----MSBTree.RTreeList
Warning: This documentation is only for java programmers. If you are just using the Applet in a HTML page, please read Class MSBTree.RTreeApplet.
The RTreeList is a subclass of Panel. Therefore you can add it to any container in your java application. In order to create a tree you must follow these steps:
public Image backImage
background image of the tree.
public static final int EXPAND_ON_CLICK
expand nodes when the user clicks on them.
public static final int EXPAND_ON_ENTER
expand nodes when the mouse enters them.
public int expandOn
specifies how the nodes are going to be expanded. Valid values are EXPAND_ON_CLICK or EXPAND_ON_ENTER.
public static final int NO_ANIMATION
no initial animation is performed
public static final int ANIMATION_FROM_TOP
the tree will come from the top of the panel and will scroll down.
public static final int ANIMATION_FROM_BOTTOM
the tree will come from the bottom of the panel and will scroll up.
public static final int ANIMATION_FROM_LEFT
the tree will come from left side of the panel and will scroll right.
public static final int ANIMATION_FROM_RIGHT
the tree will come from right side of the panel and will scroll left.
public static final int LINE_NORMAL
Lines from a nodes and its children will be solid.
public static final int LINE_DOTS
Lines from a nodes and its children will be made of dots.
public static final int LINE_DASHED
Lines from a nodes and its children will be made of short lines.
public int lineType
specifies what kind of line will be used to link a node and its descendants. Valid values are LINE_* contants.
public int tipDelay
specifies the number of milliseconds the tree will wait before showing a tip for the current node.
public int animationDelay
Specifies time (in milliseconds) between scenes in the initial animation.
public Font loadingFont
font of the text displayed to the user while definition files or applet parameters are read.
public Image loadingImage
Image to be displayed while definition files or applet parameters are read.
public String loadingText
this text will be shown to the user while definition files or applet parameters are read.
public String openingURLText
this text will be shown to the user while openning a URL.
public Color backColor
background color of the tree.
public int iconsWidth
Width of the icons. The default value is 16.
public Color scrollColor
background color of the scroll bar.
public boolean showTip
If false, no tips will be displayed.
public Font tipFont
Font used to display tips.
public Color tipColor
color of the font.
public Color tipBorder
color of the border of the box used to displayed tips.
public Color tipBack
background of the box used to displayed tips.
public RNode Root
root of the tree. Trees always have a root but it can be hidden.
public boolean showRoot
if false, the root of the tree will not be shown.
public int levelTab
left margin used for each new level of the tree.
public int leftMargin
left margin of the tree.
public int topMargin
top margin of the tree.
public Color lineColor
color of the lines used to link a node with its children
public Color plusminusboxColor
color of the +/- signes.
public boolean drawLine
specifies whether the lines that link nodes should be displayed.
public boolean drawPlusMinus
if true :
"-" will be displayed left to an expanded node.
"+" will be displayed next to a not expanded node.
public Image plusImage
Image to used instead of the + sign.
public Image minusImage
Image to use instead of the - sign.
public Applet parentApplet
Applet (if any) in which the tree is placed. This is used to read the applet's parameters.
public String defaultTarget
Target frame where URL should be openned after double-clicking a node. Valid values are:
"_self" |
show in the current frame |
"_parent" |
show in the parent frame |
"_top" |
show in the topmost frame |
"_blank" |
show in a new unnamed top-level window |
name |
show in a new top-level window named name |
public int itemHeight
Height of the items in the tree. The default is 20.
public int itemWidth
Width of the items in the tree. The default is the width of the applet itself.
public RTreeList()
public void addFirstLevelNode(RNode n)
adds the node to the root.
public void clear(RNode n)
deletes the children of the node.
public Color convertColor(String c)
converts a color parameter (as string) to a color class.
public Font convertFont(String f)
converts a font parameter (as string) to a Font class.
public void createTreeFromFile(RNode startNode, String sFile)
processes the file sfile. The nodes will be added as children of startNode.
public void createTreeFromParameters(Applet pApplet)
create the tree using the parameters of the applet.
public void expandNode(String Name, boolean expand)
Expands or collapses a node.
public RNode findNode(RNode n, String Name)
find a node by name.
public void paint(Graphics g)
public void processParameter(RNode currentNode, String ParamName, String ParamValue)
process a parameter. This method ís used to provide access to paramters from javascript.
public void refresh()
repaints the tree.
public void run()
starts the tree.
All Packages Class Hierarchy This Package Previous Next Index