All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ncsa.hdf.jhv.HDFTree

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----ncsa.hdf.jhv.HDFTree

public class HDFTree
extends Panel
implements MouseListener, AdjustmentListener
A HDFTree class is to display HDF Tree data structres like heirarchical file systems. The Tree class was written by Sandip Chitale, we make a change to suite for our HDF file. Upgraded to the JDK 1.1.1b Event Model by Apu.

Version:
1.02 xlu
Author:
HDF Group, NCSA

Variable Index

 o CELLOFFSET
 o CELLSIZE
 o defaultFontSize
 o fontHeight
 o fontWidth
 o IMAGEMARGIN
 o IMAGESIZE
 o TREE_HASLINES
the tree style mask
 o TRIGGERMARGIN
 o TRIGGERSIZE

Constructor Index

 o HDFTree()
create new HDF tree
 o HDFTree(int)
create the new HDF Tree with specified tree style

Method Index

 o addScrollbar()
add scrollbar to canvas
 o addTreeNode(TreeNode)
add the tree node
 o addTreeNode(TreeNode, TreeNode)
add the tree node who has a child
 o adjustmentValueChanged(AdjustmentEvent)
 o computedDisplayTree()
get the displayed tree node
 o getMinimumSize()
 o getPreferredSize()
 o initialize()
initialize some of variables related to the HDF Tree
 o mouseClicked(MouseEvent)
 o mouseEntered(MouseEvent)
 o mouseExited(MouseEvent)
 o mousePressed(MouseEvent)
 o mouseReleased(MouseEvent)
 o paint(Graphics)
Paints the component.
 o refresh()
adjust the Scrollbar and repaint the graphics
 o removeAllTreeNodes()
remove all TreeNodes from tree
 o removeSubTreeNodes(TreeNode)
remove the subtree of a TreeNode
 o removeTreeNode(TreeNode)
remove a TreeNode from the tree
 o resetTreeOffset()
 o setBounds(int, int, int, int)
 o update(Graphics)
Updates the component.

Variables

 o TREE_HASLINES
 public static int TREE_HASLINES
the tree style mask

 o CELLSIZE
 public static int CELLSIZE
 o CELLOFFSET
 public static int CELLOFFSET
 o IMAGEMARGIN
 public static int IMAGEMARGIN
 o IMAGESIZE
 public static int IMAGESIZE
 o TRIGGERMARGIN
 public static int TRIGGERMARGIN
 o TRIGGERSIZE
 public static int TRIGGERSIZE
 o defaultFontSize
 public static int defaultFontSize
 o fontWidth
 public static int fontWidth
 o fontHeight
 public static int fontHeight

Constructors

 o HDFTree
 public HDFTree()
create new HDF tree

 o HDFTree
 public HDFTree(int style)
create the new HDF Tree with specified tree style

Parameters:
style - the tree style

Methods

 o initialize
 public void initialize()
initialize some of variables related to the HDF Tree

 o addScrollbar
 public void addScrollbar()
add scrollbar to canvas

 o addTreeNode
 public void addTreeNode(TreeNode node)
add the tree node

Parameters:
node - the HDF tree node(HDFObjectNode)
 o addTreeNode
 public void addTreeNode(TreeNode parent,
                         TreeNode node)
add the tree node who has a child

Parameters:
parent - the parent of the node
node - the HDF tree node
 o removeTreeNode
 public void removeTreeNode(TreeNode node)
remove a TreeNode from the tree

Parameters:
node - the HDF tree node
 o removeAllTreeNodes
 public void removeAllTreeNodes()
remove all TreeNodes from tree

 o removeSubTreeNodes
 public void removeSubTreeNodes(TreeNode node)
remove the subtree of a TreeNode

Parameters:
node - the tree node
 o refresh
 public void refresh()
adjust the Scrollbar and repaint the graphics

 o resetTreeOffset
 public void resetTreeOffset()
 o computedDisplayTree
 protected void computedDisplayTree()
get the displayed tree node

 o getMinimumSize
 public Dimension getMinimumSize()
Overrides:
getMinimumSize in class Container
 o getPreferredSize
 public Dimension getPreferredSize()
Overrides:
getPreferredSize in class Container
 o adjustmentValueChanged
 public void adjustmentValueChanged(AdjustmentEvent e)
 o mouseClicked
 public void mouseClicked(MouseEvent e)
 o mousePressed
 public void mousePressed(MouseEvent e)
 o mouseReleased
 public void mouseReleased(MouseEvent e)
 o mouseEntered
 public void mouseEntered(MouseEvent e)
 o mouseExited
 public void mouseExited(MouseEvent e)
 o setBounds
 public synchronized void setBounds(int x,
                                    int y,
                                    int w,
                                    int h)
Overrides:
setBounds in class Component
 o paint
 public void paint(Graphics gc)
Paints the component.

Parameters:
pg - the specified Graphics window
Overrides:
paint in class Container
 o update
 public void update(Graphics g)
Updates the component. This method is called in response to a call to repaint. You can assume that the background is not cleared.

Parameters:
g - the specified Graphics window
Overrides:
update in class Component
See Also:
update

All Packages  Class Hierarchy  This Package  Previous  Next  Index