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
-
currentImageSize
- the requested image size
-
imageArgv
- hold image arguments.
-
imageData
- the image data
-
imagePalette
- the iamge palette data
-
information
- the string containing the SDS information
-
originalImageSize
- the original image size
-
HDFGR()
- Constructs an HDFGR with default parameters.
-
HDFGR(HDFObjectNode, String)
- Construct an HDFGR with specified HDFObjectNode and filename
-
createRainbowPalette()
- Return the RAINBOW palette
rgb rgb rgb rgb rgb ....
-
defineDataObject(int, int)
- define the data object
-
fromServer(HDFMessage)
- process the message received from the server
-
getCurrentImageSize()
- return the requested image size
-
getGRInfo(HDFLibrary, String, HDFObjectNode)
- get HDF GR image information for the selected HDF file
-
getImageArgv()
- return the image arguments
-
getImageData()
- return the image data
-
getImagePalette()
- return the image palette data
-
getInformation()
- return the information
-
getOriginalImageSize()
- return the original image size
-
service()
- serve the client request on the server
-
toClient()
- create a message for sending to the client
information
protected String information
- the string containing the SDS information
originalImageSize
protected Dimension originalImageSize
- the original image size
currentImageSize
protected Dimension currentImageSize
- the requested image size
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()
- Constructs an HDFGR with default parameters.
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
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
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
createRainbowPalette
protected byte[] createRainbowPalette()
- Return the RAINBOW palette
rgb rgb rgb rgb rgb ....
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
getInformation
public String getInformation()
- return the information
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