Class JSVGViewerFrame.ImageFileFilter

java.lang.Object
javax.swing.filechooser.FileFilter
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 Details

    • extension

      protected String extension
      The extension of the image filename.
  • Constructor Details

    • ImageFileFilter

      public ImageFileFilter(String extension)
  • Method Details

    • 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