Class NewPlot.PlotImagesFileFilter

java.lang.Object
javax.swing.filechooser.FileFilter
jwat.trafficAnalysis.utils.NewPlot.PlotImagesFileFilter
Enclosing class:
NewPlot

protected static class NewPlot.PlotImagesFileFilter extends FileFilter
Inner class used to create simple file filters with only extension check
Author:
Bertoli Marco Date: 1-giu-2006 Time: 15.44.43
  • Constructor Details

    • PlotImagesFileFilter

      public PlotImagesFileFilter(String extension, String description)
      Creates a new filefilter with specified extension and description
      Parameters:
      extension - extension of this filter (for example ".jmt")
      description - description of this filter
  • Method Details

    • accept

      public boolean accept(File f)
      Whether the given file is accepted by this filter.
      Specified by:
      accept in class FileFilter
    • getDescription

      public String getDescription()
      The description of this filter
      Specified by:
      getDescription in class FileFilter
      See Also:
    • getExtension

      public String getExtension()
      Gets extension of this filter
      Returns:
      extension of this filter