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
-
PREFEREDIMAGESIZE
-
-
HDFTreeNode(Object, Image, Image, JHV)
- create the new HDF Tree node for the node who has the child
-
HDFTreeNode(Object, Image, JHV)
- create the new HDF Tree node
-
createPaletteImage(byte[])
- create the palette image
-
createRasterImage(byte[], int, int, byte[])
- creates a raster image
-
dispHdfAnnotation(HDFObject)
- display annontation received from a remote machine
-
dispHdfGR(HDFObject)
- display generic raster image received from a remote machine
-
dispHdfRis24(HDFObject)
- display 24-bit raster image received from a remote machine
-
dispHdfRis8(HDFObject)
- display 8-bit raster image
-
dispHdfRis8Images(int, HDFObjectNode)
- displays all 8-bit raster images in anmiated or layered format
-
dispHdfSDS(HDFObject)
- display SDS received from a remote machine
-
dispMessage(String)
- Display the text message
-
eraseImage()
- clean up the image panel
-
expandCollapse(HDFTree)
- select one HDF Tree node, this node is expandable(has one child at least)
-
getHDFObject()
- get the HDF message from server
-
getHdfSDSimage(SDSDimInfo)
- get the selected SDS image
-
select(HDFTree)
- display an HDFObject received from a remote machine
PREFEREDIMAGESIZE
public static final int PREFEREDIMAGESIZE
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
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
eraseImage
public void eraseImage()
- clean up the image panel
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
createPaletteImage
public Image createPaletteImage(byte pal[])
- create the palette image
- Parameters:
- pal - the palette value
- Returns:
- the image , otherwise null
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
dispMessage
public void dispMessage(String msg)
- Display the text message
- Parameters:
- msg - the message to be displayed
getHDFObject
public HDFObject getHDFObject()
- get the HDF message from server
- Returns:
- The HDFObject containing the requested data
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
dispHdfAnnotation
public void dispHdfAnnotation(HDFObject hdfObject)
- display annontation received from a remote machine
- Parameters:
- hdfObject - the HDFObject received from the remote machine
dispHdfRis8
public void dispHdfRis8(HDFObject hdfObject)
- display 8-bit raster image
- Parameters:
- hdfObject - the HDFObject received from the remote machine
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
dispHdfGR
public void dispHdfGR(HDFObject hdfObject)
- display generic raster image received from a remote machine
- Parameters:
- hdfObject - the HDFObject received from the remote machine
dispHdfSDS
public void dispHdfSDS(HDFObject hdfObject)
- display SDS received from a remote machine
- Parameters:
- hdfObject - the HDFObject received from the remote machine
getHdfSDSimage
public void getHdfSDSimage(SDSDimInfo sliceInfo)
- get the selected SDS image
- Parameters:
- sliceInfo - the SDSDimInfo for the selected slice of SDS image
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