Class JSVGViewerFrame.ImageFileFilter

  • Enclosing class:
    JSVGViewerFrame

    protected static class JSVGViewerFrame.ImageFileFilter
    extends javax.swing.filechooser.FileFilter
    A FileFilter used when exporting the SVG document as an image.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String extension
      The extension of the image filename.
    • Constructor Summary

      Constructors 
      Constructor Description
      ImageFileFilter​(java.lang.String extension)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean accept​(java.io.File f)
      Returns true if f is a file with the correct extension, false otherwise.
      java.lang.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 java.lang.String extension
        The extension of the image filename.
    • Constructor Detail

      • ImageFileFilter

        public ImageFileFilter​(java.lang.String extension)
    • Method Detail

      • accept

        public boolean accept​(java.io.File f)
        Returns true if f is a file with the correct extension, false otherwise.
        Specified by:
        accept in class javax.swing.filechooser.FileFilter
      • getDescription

        public java.lang.String getDescription()
        Returns the file description
        Specified by:
        getDescription in class javax.swing.filechooser.FileFilter