package imageprocessing; import javax.swing.JPanel; /** A panel which can display IImage objects. * */ public abstract class AbstractImagePanel extends JPanel { /** Give this panel an image to display. As a result of this, the new image should show up on the panel (the next time the panel is repainted). If the parameter is null, then any existing image is cleared, and display should become blank. For CSE143-04su Project 5/6, the image should be rendered as a set of Shape objects of appropriate size, color, and position. @param image a valid image object, or null. HINT: Don't try to actually paint the image in this setImage method! be done... where? */ public abstract void setImage(IImage image); /** Returns the image currently displayed on this panel (if any). * * @return the image currently displayed, or null if there is currently * no image */ public abstract IImage getImage(); }