All Packages Class Hierarchy This Package Previous Next Index
Class PREDATOR.ADT.PolygonObject
java.lang.Object
|
+----PREDATOR.ADT.DataObject
|
+----PREDATOR.ADT.PolygonObject
- public class PolygonObject
- extends DataObject
- implements CachingObject, DisplayObject
Encapsulates all in-memory data regarding an polygon ADT object.
- See Also:
- ADT_polygon
-
PolygonObject()
-
-
callback(URL, ADTMetaInfo)
- Performs a callback to the server, using the given URL.
-
display(ADTMetaInfo)
- Displays an object indepently.
-
getMessage()
- Callback objects have the option of supplying a byte string
containing additional information about the callback.
-
requiresCallback(ADTMetaInfo)
- Determines if this object has a handle on the "full value", or if
a callback or deserialization is necessary.
-
toString(ADTMetaInfo)
- Prints the value of the polygon
PolygonObject
public PolygonObject()
toString
public String toString(ADTMetaInfo MetaInfo)
- Prints the value of the polygon
- Parameters:
- MetaInfo - The meta-info for this object
- Returns:
- A string holding the value of the polygon
- 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
callback
public void callback(URL CallbackURL,
ADTMetaInfo MetaInfo)
- Performs a callback to the server, using the given URL. The URL
may be opened as a stream, if desired. The contents of the URL
will be determined by what the server-side ADT writes out in the
ServiceCallback() function (in types.h).
- Parameters:
- CallbackURL - The URL of the callback object
- MetaInfo - The meta-info for this object
requiresCallback
public boolean requiresCallback(ADTMetaInfo MetaInfo)
- Determines if this object has a handle on the "full value", or if
a callback or deserialization is necessary.
- Parameters:
- MetaInfo - The meta-info for this object
- Returns:
- true if this object does not have its "full value" available
display
public void display(ADTMetaInfo MetaInfo) throws RequiresCallbackException
- Displays an object indepently. Implementations of this function
should be non-blocking for best performance. (For instance, an
image should be displayed in an independent frame and execution
should proceed while the frame is still open.)
- Parameters:
- MetaInfo - The meta-info for this object
- Throws: RequiresCallbackException
- when a callback is required
before a display can be made
All Packages Class Hierarchy This Package Previous Next Index