com.xinapse.multisliceimage
Class ImageFileFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by com.xinapse.multisliceimage.ImageFileFilter

public class ImageFileFilter
extends javax.swing.filechooser.FileFilter

A file filter for all MultiSliceImages. The accept method returns true if file is a MultiSliceImage.


Method Summary
 boolean accept(java.io.File file)
          Tests whether the given file probably represents a MultiSliceImage file.
 java.lang.String getDescription()
          Returns "All Images".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDescription

public java.lang.String getDescription()
Returns "All Images".

Specified by:
getDescription in class javax.swing.filechooser.FileFilter
Returns:
the description String "All Images".

accept

public boolean accept(java.io.File file)
Tests whether the given file probably represents a MultiSliceImage file. Also accepts directories to allow navigation while looking for images.

Specified by:
accept in class javax.swing.filechooser.FileFilter
Parameters:
file - the file to test.
Returns:
true if the supplied file is a MultiSliceImage file, or a directory; returns false otherwise.


Copyright 2006-2011 Xinapse Systems Limited. All Rights Reserved.