org.apache.batik.apps.svgbrowser
Class JSVGViewerFrame.ImageFileFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by org.apache.batik.apps.svgbrowser.JSVGViewerFrame.ImageFileFilter
Enclosing class:
JSVGViewerFrame

protected static class JSVGViewerFrame.ImageFileFilter
extends FileFilter

A FileFilter used when exporting the SVG document as an image.


Field Summary
protected  String extension
          The extension of the image filename.
 
Constructor Summary
JSVGViewerFrame.ImageFileFilter(String extension)
           
 
Method Summary
 boolean accept(File f)
          Returns true if f is a file with the correct extension, false otherwise.
 String getDescription()
          Returns the file description
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

extension

protected String extension
The extension of the image filename.

Constructor Detail

JSVGViewerFrame.ImageFileFilter

public JSVGViewerFrame.ImageFileFilter(String extension)
Method Detail

accept

public boolean accept(File f)
Returns true if f is a file with the correct extension, false otherwise.

Specified by:
accept in class FileFilter

getDescription

public String getDescription()
Returns the file description

Specified by:
getDescription in class FileFilter


Copyright © 2008 Apache Software Foundation. All Rights Reserved.