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
- Version:
- 1.1.3 September 22 1997
- Author:
- Peter X. Cao
-
imageArgv
- hold image arguments.
-
imageData
- the image data
-
imagePalette
- the iamge palette data
-
originalImageSize
- the original image size
-
selectedImageSize
- the requested image area
-
HDFGR()
-
-
HDFGR(HDFObjectNode, String)
- Construct an HDFGR with specified HDFObjectNode and filename
-
createRainbowPalette()
- Return the RAINBOW palette
rgb rgb rgb rgb rgb ....
-
fromServer(HDFMessage)
- process the message received from the server
-
getCurrentImageSize()
- return the requested image size
-
getImageArgv()
- return the image arguments
-
getImageData()
- return the image data
-
getImagePalette()
- return the image palette data
-
getOriginalImageSize()
- return the original image size
-
readInfo(HDFLibrary, String, HDFObjectNode)
- get HDF GR image information for the selected HDF file
-
service()
- serve the client request on the server
-
toClient()
- create a message for sending to the client
originalImageSize
protected Dimension originalImageSize
- the original image size
selectedImageSize
protected Dimension selectedImageSize
- the requested image area
imageData
protected Object imageData
- the image data
imagePalette
protected byte imagePalette[]
- the iamge palette data
imageArgv
protected int imageArgv[]
- hold image arguments.
imageArgv[0] = number of images
imageArgv[1] = image data type
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
HDFGR
public HDFGR()
toClient
public HDFMessage toClient()
- create a message for sending to the client
- Returns:
- The HDFMessage created by this object
- Overrides:
- toClient in class HDFObject
service
public void service()
- serve the client request on the server
- Overrides:
- service in class HDFObject
fromServer
public void fromServer(HDFMessage message)
- process the message received from the server
- Overrides:
- fromServer in class HDFObject
readInfo
public static String readInfo(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
createRainbowPalette
protected byte[] createRainbowPalette()
- Return the RAINBOW palette
rgb rgb rgb rgb rgb ....
getOriginalImageSize
public Dimension getOriginalImageSize()
- return the original image size
getCurrentImageSize
public Dimension getCurrentImageSize()
- return the requested image size
getImageData
public Object getImageData()
- return the image data
getImagePalette
public byte[] getImagePalette()
- return the image palette data
getImageArgv
public int[] getImageArgv()
- return the image arguments
All Packages Class Hierarchy This Package Previous Next Index