All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class PREDATOR.ADT.ImageObject

java.lang.Object
   |
   +----PREDATOR.ADT.DataObject
           |
           +----PREDATOR.ADT.ImageObject

public class ImageObject
extends DataObject
implements CallbackObject, MIMETypeObject
Encapsulates all in-memory data regarding an image ADT object.

See Also:
ADT_image

Variable Index

 o DesiredResolution
The desired resolution number.

Constructor Index

 o ImageObject()

Method Index

 o getFilenameExtension(ADTMetaInfo)
Provides a filename extension suitable for files storing data of this MIME type.
 o getMessage()
Callback objects have the option of supplying a byte string containing additional information about the callback.
 o setDesiredResolution(int)
Sets the desired resolution of the object when a callback is performed.
 o toString(ADTMetaInfo)
Prints the value of the image

Variables

 o DesiredResolution
 public int DesiredResolution
The desired resolution number.

Constructors

 o ImageObject
 public ImageObject()

Methods

 o setDesiredResolution
 public void setDesiredResolution(int DesiredResolution)
Sets the desired resolution of the object when a callback is performed. If the selected resolution does not exist, callbacks for this object will fail.

Parameters:
DesiredResolution - Sets the desired resolution (0 = normal, 1 = first reduced resolution, 2 = second reduced resolution).
 o toString
 public String toString(ADTMetaInfo MetaInfo)
Prints the value of the image

Parameters:
MetaInfo - The meta-info for this object
Returns:
A string holding the value of the image
Overrides:
toString in class DataObject
 o getMessage
 public byte[] getMessage()
Callback objects have the option of supplying a byte string containing additional information about the callback. For instance, an image object might specify one of many stored resolutions.

Returns:
A binary message
 o getFilenameExtension
 public String getFilenameExtension(ADTMetaInfo MetaInfo)
Provides a filename extension suitable for files storing data of this MIME type. For instance, JPEG images will supply the extension "jpg".

Returns:
A suitable filename extension for files of this type

All Packages  Class Hierarchy  This Package  Previous  Next  Index