import java.awt.*;
import java.awt.event.*;

/**
 * Objects that store and retrieve photos from local 
 * directories.  Photos are assoiated with the subject's
 * username. We are using this class for the Photo class 
 * in the Gmail server, but it could be used for system
 * that needs photos and can store them on a local drive. 
 *
 * @version 1.0 of 10/25/99
 * @author Gail Bonath
 * @author Joe Pipkins
 * @author Minna Mahlab
 * @author Kate Ducey
 */

public interface PhotoInt {

    /**
     * Takes in the username and returns the associated
     * Image from database folder.  If there
     * is no associated Image file for the username, an
     * exception is thrown.
     */
    public Image getPhoto()
        throws Exception;

    /**
     * Creates a window which displays the photo
     */
    public void displayPhoto();


    /**
     * Creates a window which displays the default photo
     */
    public void displayNull();


    /** 
     * Closes the current frame
     */
    
    public void closeWindow();

        
} // Photo
