net.jalbum.filterManager
Interface FilterManagerFriend

All Known Implementing Classes:
JEditPanel

public interface FilterManagerFriend

This interface has to be implemented by the class which will handle the FilterManager as the FilterManager will pass some requests to the implementing class which it can not handle on it own.

See Also:
FilterManager

Method Summary
 void filterMenuClosed(java.awt.image.BufferedImage bi, boolean saveBeforeClose)
          used by the FilterManager to reset the interface and return to the standard menu with will show the most recent version of the current image.
 javax.swing.JComponent getImageComponent()
           
 java.awt.image.BufferedImage scaleImage(java.awt.image.BufferedImage bi)
          used by the FilterManager to request a scaled down version of the passed image according to settings made by the user in the settings menu.
 void setImage(java.awt.image.BufferedImage bi)
           
 

Method Detail

scaleImage

java.awt.image.BufferedImage scaleImage(java.awt.image.BufferedImage bi)
used by the FilterManager to request a scaled down version of the passed image according to settings made by the user in the settings menu.

Parameters:
bi - the image to be scaled down. By the time this method is called, all prescale filters added to the image will be applied.
Returns:
the scaled down buffered image

filterMenuClosed

void filterMenuClosed(java.awt.image.BufferedImage bi,
                      boolean saveBeforeClose)
used by the FilterManager to reset the interface and return to the standard menu with will show the most recent version of the current image.

Parameters:
bi - the current image with all the filters applied to it
saveBeforeClose - wheter to save any work that has been done before closing or not.

setImage

void setImage(java.awt.image.BufferedImage bi)

getImageComponent

javax.swing.JComponent getImageComponent()