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.EXPAND_ON_CLICK
public static final int EXPAND_ON_CLICK
expand nodes when the user clicks on them.EXPAND_ON_ENTER
public static final int EXPAND_ON_ENTER
expand nodes when the mouse enters them.expandOn
public int expandOn
specifies how the nodes are going to be expanded. Valid values are EXPAND_ON_CLICK or EXPAND_ON_ENTER.NO_ANIMATION
public static final int NO_ANIMATION
no initial animation is performedANIMATION_FROM_TOP
public static final int ANIMATION_FROM_TOP
the tree will come from the top of the panel and will scroll down.ANIMATION_FROM_BOTTOM
public static final int ANIMATION_FROM_BOTTOM
the tree will come from the bottom of the panel and will scroll up.
ANIMATION_FROM_LEFT
public static final int ANIMATION_FROM_LEFT
the tree will come from left side of the panel and will scroll right.ANIMATION_FROM_RIGHT
public static final int ANIMATION_FROM_RIGHT
the tree will come from right side of the panel and will scroll left.LINE_NORMAL
public static final int LINE_NORMAL
Lines from a nodes and its children will be solid.LINE_DOTS
public static final int LINE_DOTS
Lines from a nodes and its children will be made of dots.LINE_DASHED
public static final int LINE_DASHED
Lines from a nodes and its children will be made of short lines.lineType
public int lineType
specifies what kind of line will be used to link a node and its descendants. Valid values are LINE_* contants.tipDelay
public int tipDelay
specifies the number of milliseconds the tree will wait before showing a tip for the current node.animationDelay
public int animationDelay
Specifies time (in milliseconds) between scenes in the initial animation.loadingFont
public Font loadingFont
font of the text displayed to the user while definition files or applet parameters are read.loadingImage
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.openingURLText
public String openingURLText
this text will be shown to the user while openning a URL.backColor
public Color backColor
background color of the tree.iconsWidth
public int iconsWidth
Width of the icons. The default value is 16.scrollColor
public Color scrollColor
background color of the scroll bar.showTip
public boolean showTip
If false, no tips will be displayed.tipFont
public Font tipFont
Font used to display tips.tipColor
public Color tipColor
color of the font.tipBorder
public Color tipBorder
color of the border of the box used to displayed tips.tipBack
public Color tipBack
background of the box used to displayed tips.Root
public RNode Root
root of the tree. Trees always have a root but it can be hidden.showRoot
public boolean showRoot
if false, the root of the tree will not be shown.levelTab
public int levelTab
left margin used for each new level of the tree.
leftMargin
public int leftMargin
left margin of the tree.
topMargin
public int topMargin
top margin of the tree.lineColor
public Color lineColor
color of the lines used to link a node with its childrenplusminusboxColor
public Color plusminusboxColor
color of the +/- signes.drawLine
public boolean drawLine
specifies whether the lines that link nodes should be displayed.drawPlusMinus
public boolean drawPlusMinus
if true :
"-" will be displayed left to an expanded node.
"+" will be displayed next to a not expanded node.plusImage
public Image plusImage
Image to used instead of the + sign.minusImage
public Image minusImage
Image to use instead of the - sign.parentApplet
public Applet parentApplet
Applet (if any) in which the tree is placed. This is used to read the applet's parameters.defaultTarget
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 |
itemHeight
public int itemHeight
Height of the items in the tree. The default is 20.itemWidth
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.clear
public void clear(RNode n)
deletes the children of the node.convertColor
public Color convertColor(String c)
converts a color parameter (as string) to a color class.convertFont
public Font convertFont(String f)
converts a font parameter (as string) to a Font class.createTreeFromFile
public void createTreeFromFile(RNode startNode, String sFile)
processes the file sfile. The nodes will be added as children of startNode.createTreeFromParameters
public void createTreeFromParameters(Applet pApplet)
create the tree using the parameters of the applet.expandNode
public void expandNode(String Name, boolean expand)
Expands or collapses a node.findNode
public RNode findNode(RNode n, String Name)
find a node by name.paint
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.refresh
public void refresh()
repaints the tree.run
public void run()
starts the tree.
All Packages Class Hierarchy This Package Previous Next Index