org.apache.batik.apps.svgbrowser
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 Summary |
protected String |
extension
The extension of the image filename. |
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 |
extension
protected String extension
- The extension of the image filename.
JSVGViewerFrame.ImageFileFilter
public JSVGViewerFrame.ImageFileFilter(String extension)
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 © 2017 Apache Software Foundation. All Rights Reserved.