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; /** * Takes in a username and an Image and saves the * Image file in the database folder under the name * "username.jpeg". If there is already a * username.jpeg file in the folder, it will be * overwritten. */ public boolean setPhoto(Image picture); /** * Creates a window which displays the picture field */ public void displayPhoto(); } // Photo