portaview.model
Class ImageModel

java.lang.Object
  extended byjava.util.Observable
      extended byportaview.model.DomainModel
          extended byportaview.model.ImageModel
All Implemented Interfaces:
org.apache.xmlrpc.AsyncCallback
Direct Known Subclasses:
AlbumModel, PhotoModel, PortaViewImageModel

public abstract class ImageModel
extends DomainModel
implements org.apache.xmlrpc.AsyncCallback

Abstract implementation of an image model.

Author:
William Lee

Constructor Summary
ImageModel()
          Constructs an ImageModel associated with no image.
ImageModel(java.awt.Image img)
          Constructs an ImageModel associated with a given image.
 
Method Summary
 java.awt.Image getImage()
           
 void handleError(java.lang.Exception exception, java.net.URL url, java.lang.String method)
          Handles the error for the async call to the master when retrieving the picture.
 void handleResult(java.lang.Object result, java.net.URL url, java.lang.String method)
          Handles the result for the async call to master when retrieving the picture.
 void setImage(java.awt.Image image)
          Sets the image
 
Methods inherited from class portaview.model.DomainModel
forceNotifyObservers
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageModel

public ImageModel()
Constructs an ImageModel associated with no image.


ImageModel

public ImageModel(java.awt.Image img)
Constructs an ImageModel associated with a given image.

Parameters:
img - Image object.
Method Detail

getImage

public java.awt.Image getImage()
Returns:
the image

setImage

public void setImage(java.awt.Image image)
Sets the image

Parameters:
image - the image to set.

handleResult

public void handleResult(java.lang.Object result,
                         java.net.URL url,
                         java.lang.String method)
Handles the result for the async call to master when retrieving the picture.

Specified by:
handleResult in interface org.apache.xmlrpc.AsyncCallback
See Also:
AsyncCallback.handleResult(java.lang.Object, java.net.URL, java.lang.String)

handleError

public void handleError(java.lang.Exception exception,
                        java.net.URL url,
                        java.lang.String method)
Handles the error for the async call to the master when retrieving the picture.

Specified by:
handleError in interface org.apache.xmlrpc.AsyncCallback
See Also:
AsyncCallback.handleError(java.lang.Exception, java.net.URL, java.lang.String)


Copyright © 2003 The PortaView Team. All Rights Reserved.