Class ImageFileFilter

java.lang.Object
javax.swing.filechooser.FileFilter
com.xinapse.image.ImageFileFilter

public class ImageFileFilter extends FileFilter
A file filter for all images that can be loaded directly into Jim. The accept method returns true if file is an image file that can be loaded directly into Jim.
  • Field Details

  • Method Details

    • getDescription

      public String getDescription()
      Returns "All Images".
      Specified by:
      getDescription in class FileFilter
      Returns:
      the description String "All Images".
    • accept

      public boolean accept(File file)
      Tests whether the given file probably represents a loadable image file. Also accepts directories to allow navigation while looking for images.
      Specified by:
      accept in class FileFilter
      Parameters:
      file - the file to test.
      Returns:
      true if the supplied file is a loadable image file, or a directory; returns false otherwise.