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
-
CELLOFFSET
-
-
CELLSIZE
-
-
defaultFontSize
-
-
fontHeight
-
-
fontWidth
-
-
IMAGEMARGIN
-
-
IMAGESIZE
-
-
TREE_HASLINES
- the tree style mask
-
TRIGGERMARGIN
-
-
TRIGGERSIZE
-
-
HDFTree()
- create new HDF tree
-
HDFTree(int)
- create the new HDF Tree with specified tree style
-
addScrollbar()
- add scrollbar to canvas
-
addTreeNode(TreeNode)
- add the tree node
-
addTreeNode(TreeNode, TreeNode)
- add the tree node who has a child
-
adjustmentValueChanged(AdjustmentEvent)
-
-
computedDisplayTree()
- get the displayed tree node
-
getMinimumSize()
-
-
getPreferredSize()
-
-
initialize()
- initialize some of variables related to the HDF Tree
-
mouseClicked(MouseEvent)
-
-
mouseEntered(MouseEvent)
-
-
mouseExited(MouseEvent)
-
-
mousePressed(MouseEvent)
-
-
mouseReleased(MouseEvent)
-
-
paint(Graphics)
-
Paints the component.
-
refresh()
- adjust the Scrollbar and repaint the graphics
-
removeAllTreeNodes()
- remove all TreeNodes from tree
-
removeSubTreeNodes(TreeNode)
- remove the subtree of a TreeNode
-
removeTreeNode(TreeNode)
- remove a TreeNode from the tree
-
resetTreeOffset()
-
-
setBounds(int, int, int, int)
-
-
update(Graphics)
- Updates the component.
TREE_HASLINES
public static int TREE_HASLINES
- the tree style mask
CELLSIZE
public static int CELLSIZE
CELLOFFSET
public static int CELLOFFSET
IMAGEMARGIN
public static int IMAGEMARGIN
IMAGESIZE
public static int IMAGESIZE
TRIGGERMARGIN
public static int TRIGGERMARGIN
TRIGGERSIZE
public static int TRIGGERSIZE
defaultFontSize
public static int defaultFontSize
fontWidth
public static int fontWidth
fontHeight
public static int fontHeight
HDFTree
public HDFTree()
- create new HDF tree
HDFTree
public HDFTree(int style)
- create the new HDF Tree with specified tree style
- Parameters:
- style - the tree style
initialize
public void initialize()
- initialize some of variables related to the HDF Tree
addScrollbar
public void addScrollbar()
- add scrollbar to canvas
addTreeNode
public void addTreeNode(TreeNode node)
- add the tree node
- Parameters:
- node - the HDF tree node(HDFObjectNode)
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
removeTreeNode
public void removeTreeNode(TreeNode node)
- remove a TreeNode from the tree
- Parameters:
- node - the HDF tree node
removeAllTreeNodes
public void removeAllTreeNodes()
- remove all TreeNodes from tree
removeSubTreeNodes
public void removeSubTreeNodes(TreeNode node)
- remove the subtree of a TreeNode
- Parameters:
- node - the tree node
refresh
public void refresh()
- adjust the Scrollbar and repaint the graphics
resetTreeOffset
public void resetTreeOffset()
computedDisplayTree
protected void computedDisplayTree()
- get the displayed tree node
getMinimumSize
public Dimension getMinimumSize()
- Overrides:
- getMinimumSize in class Container
getPreferredSize
public Dimension getPreferredSize()
- Overrides:
- getPreferredSize in class Container
adjustmentValueChanged
public void adjustmentValueChanged(AdjustmentEvent e)
mouseClicked
public void mouseClicked(MouseEvent e)
mousePressed
public void mousePressed(MouseEvent e)
mouseReleased
public void mouseReleased(MouseEvent e)
mouseEntered
public void mouseEntered(MouseEvent e)
mouseExited
public void mouseExited(MouseEvent e)
setBounds
public synchronized void setBounds(int x,
int y,
int w,
int h)
- Overrides:
- setBounds in class Component
paint
public void paint(Graphics gc)
- Paints the component.
- Parameters:
- pg - the specified Graphics window
- Overrides:
- paint in class Container
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