All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ncsa.hdf.jhv.HDFTreeNode

java.lang.Object
   |
   +----ncsa.hdf.jhv.TreeNode
           |
           +----ncsa.hdf.jhv.HDFTreeNode

public class HDFTreeNode
extends TreeNode
This class is actual HDF tree node derived from the HDFTreeNode and used by JHV. This class also define a bunch of methods to do something like the HDF operation Date: 3-26-97 For attribute of an HDF objects, add "Number type" & "Count" info. Need changed to the following methods: getHdfSDSgattr(), getHdfSDSattr(), getHdfGRgattr(), getHdfGRattr(), Date: 6-5-97 Take UINT8 same as INT8. Modifications: 1. Separate hdf file access from the UI. 01/22/98, Peter Cao 2. Support remote file access. 01/22/98, Peter Cao 3. Add documentation. 01/22/98, Peter Cao


Variable Index

 o PREFEREDIMAGESIZE

Constructor Index

 o HDFTreeNode(Object, Image, Image, JHV)
create the new HDF Tree node for the node who has the child
 o HDFTreeNode(Object, Image, JHV)
create the new HDF Tree node

Method Index

 o createPaletteImage(byte[])
create the palette image
 o createRasterImage(byte[], int, int, byte[])
creates a raster image
 o dispHdfAnnotation(HDFObject)
display annontation received from a remote machine
 o dispHdfGR(HDFObject)
display generic raster image received from a remote machine
 o dispHdfRis24(HDFObject)
display 24-bit raster image received from a remote machine
 o dispHdfRis8(HDFObject)
display 8-bit raster image
 o dispHdfRis8Images(int, HDFObjectNode)
displays all 8-bit raster images in anmiated or layered format
 o dispHdfSDS(HDFObject)
display SDS received from a remote machine
 o dispMessage(String)
Display the text message
 o eraseImage()
clean up the image panel
 o expandCollapse(HDFTree)
select one HDF Tree node, this node is expandable(has one child at least)
 o getHDFObject()
get the HDF message from server
 o getHdfSDSimage(SDSDimInfo)
get the selected SDS image
 o select(HDFTree)
display an HDFObject received from a remote machine

Variables

 o PREFEREDIMAGESIZE
 public static final int PREFEREDIMAGESIZE

Constructors

 o HDFTreeNode
 public HDFTreeNode(Object obj,
                    Image img,
                    JHV app)
create the new HDF Tree node

Parameters:
obj - the generic object
img - the default icon for this node
app - the applet of this node that belongs to
 o HDFTreeNode
 public HDFTreeNode(Object obj,
                    Image img,
                    Image imgCollapsed,
                    JHV app)
create the new HDF Tree node for the node who has the child

Parameters:
obj - the generic object
img - the default icon for this node
imgCollapsed - the icon for opened file folder
app - the applet of this node that belongs to

Methods

 o eraseImage
 public void eraseImage()
clean up the image panel

 o createRasterImage
 public Image createRasterImage(byte imgData[],
                                int w,
                                int h,
                                byte imgPal[])
creates a raster image

Parameters:
imgData - the byte array of image data
w - the image width
h - the image height
imgPal - the byte array of the image palette
Returns:
the raster image
 o createPaletteImage
 public Image createPaletteImage(byte pal[])
create the palette image

Parameters:
pal - the palette value
Returns:
the image , otherwise null
 o expandCollapse
 public void expandCollapse(HDFTree tree)
select one HDF Tree node, this node is expandable(has one child at least)

Parameters:
tree - the HDF Tree
 o dispMessage
 public void dispMessage(String msg)
Display the text message

Parameters:
msg - the message to be displayed
 o getHDFObject
 public HDFObject getHDFObject()
get the HDF message from server

Returns:
The HDFObject containing the requested data
 o select
 public void select(HDFTree tree)
display an HDFObject received from a remote machine

Parameters:
tree - The HDFTree of the HDF hierarchy
modifier - The display modifier
jhv - The JHV viewer
 o dispHdfAnnotation
 public void dispHdfAnnotation(HDFObject hdfObject)
display annontation received from a remote machine

Parameters:
hdfObject - the HDFObject received from the remote machine
 o dispHdfRis8
 public void dispHdfRis8(HDFObject hdfObject)
display 8-bit raster image

Parameters:
hdfObject - the HDFObject received from the remote machine
 o dispHdfRis24
 public void dispHdfRis24(HDFObject hdfObject)
display 24-bit raster image received from a remote machine

Parameters:
hdfObject - the HDFObject received from the remote machine
 o dispHdfGR
 public void dispHdfGR(HDFObject hdfObject)
display generic raster image received from a remote machine

Parameters:
hdfObject - the HDFObject received from the remote machine
 o dispHdfSDS
 public void dispHdfSDS(HDFObject hdfObject)
display SDS received from a remote machine

Parameters:
hdfObject - the HDFObject received from the remote machine
 o getHdfSDSimage
 public void getHdfSDSimage(SDSDimInfo sliceInfo)
get the selected SDS image

Parameters:
sliceInfo - the SDSDimInfo for the selected slice of SDS image
 o dispHdfRis8Images
 public void dispHdfRis8Images(int viewType,
                               HDFObjectNode node)
displays all 8-bit raster images in anmiated or layered format

Parameters:
viewType - the view type: animated or layered or default
node - the current selected node

All Packages  Class Hierarchy  This Package  Previous  Next  Index