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
-
DesiredResolution
- The desired resolution number.
-
ImageObject()
-
-
getFilenameExtension(ADTMetaInfo)
- Provides a filename extension suitable for files storing data of
this MIME type.
-
getMessage()
- Callback objects have the option of supplying a byte string
containing additional information about the callback.
-
setDesiredResolution(int)
- Sets the desired resolution of the object when a callback
is performed.
-
toString(ADTMetaInfo)
- Prints the value of the image
DesiredResolution
public int DesiredResolution
- The desired resolution number.
ImageObject
public ImageObject()
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).
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
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
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