All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ncsa.hdf.message.HDFGR

java.lang.Object
   |
   +----ncsa.hdf.message.HDFObject
           |
           +----ncsa.hdf.message.HDFGR

public class HDFGR
extends HDFObject
HDFGR holds HDF Generic Raster image information. It also serves as a base class of other image types


Variable Index

 o currentImageSize
the requested image size
 o imageArgv
hold image arguments.
 o imageData
the image data
 o imagePalette
the iamge palette data
 o information
the string containing the SDS information
 o originalImageSize
the original image size

Constructor Index

 o HDFGR()
Constructs an HDFGR with default parameters.
 o HDFGR(HDFObjectNode, String)
Construct an HDFGR with specified HDFObjectNode and filename

Method Index

 o createRainbowPalette()
Return the RAINBOW palette rgb rgb rgb rgb rgb ....
 o defineDataObject(int, int)
define the data object
 o fromServer(HDFMessage)
process the message received from the server
 o getCurrentImageSize()
return the requested image size
 o getGRInfo(HDFLibrary, String, HDFObjectNode)
get HDF GR image information for the selected HDF file
 o getImageArgv()
return the image arguments
 o getImageData()
return the image data
 o getImagePalette()
return the image palette data
 o getInformation()
return the information
 o getOriginalImageSize()
return the original image size
 o service()
serve the client request on the server
 o toClient()
create a message for sending to the client

Variables

 o information
 protected String information
the string containing the SDS information

 o originalImageSize
 protected Dimension originalImageSize
the original image size

 o currentImageSize
 protected Dimension currentImageSize
the requested image size

 o imageData
 protected Object imageData
the image data

 o imagePalette
 protected byte imagePalette[]
the iamge palette data

 o imageArgv
 protected int imageArgv[]
hold image arguments.
   imageArgv[0] = number of images
   imageArgv[1] = image data type
  

Constructors

 o HDFGR
 public HDFGR()
Constructs an HDFGR with default parameters.

 o HDFGR
 public HDFGR(HDFObjectNode node,
              String filename)
Construct an HDFGR with specified HDFObjectNode and filename

Parameters:
node - the HDFObjectNode to be transfered to the server
filename - the requested HDF file

Methods

 o toClient
 public HDFMessage toClient()
create a message for sending to the client

Returns:
The HDFMessage created by this object
Overrides:
toClient in class HDFObject
 o service
 public void service()
serve the client request on the server

Overrides:
service in class HDFObject
 o fromServer
 public void fromServer(HDFMessage message)
process the message received from the server

Overrides:
fromServer in class HDFObject
 o getGRInfo
 public static String getGRInfo(HDFLibrary hdf,
                                String filename,
                                HDFObjectNode node) throws HDFException
get HDF GR image information for the selected HDF file

Parameters:
filename - the string of the hdf file name
node - the HDFObjectNode
Returns:
the string containing the GR image information
 o createRainbowPalette
 protected byte[] createRainbowPalette()
Return the RAINBOW palette rgb rgb rgb rgb rgb ....

 o defineDataObject
 public Object defineDataObject(int dataType,
                                int dataSize)
define the data object

Parameters:
dataType - the type of the iamge data
dataSize - the size of the image data array
 o getInformation
 public String getInformation()
return the information

 o getOriginalImageSize
 public Dimension getOriginalImageSize()
return the original image size

 o getCurrentImageSize
 public Dimension getCurrentImageSize()
return the requested image size

 o getImageData
 public Object getImageData()
return the image data

 o getImagePalette
 public byte[] getImagePalette()
return the image palette data

 o getImageArgv
 public int[] getImageArgv()
return the image arguments


All Packages  Class Hierarchy  This Package  Previous  Next  Index