Class CoordinateFileFilter

java.lang.Object
javax.swing.filechooser.FileFilter
ffx.potential.parsers.CoordinateFileFilter

public final class CoordinateFileFilter extends FileFilter
The CoordinateFileFilter class globally determines if a file is a valid coordinate file (PDB, XYZ, INT, or ARC formats).
Since:
1.0
Author:
Michael J. Schnieders, Jacob M. Litman
  • Constructor Details

    • CoordinateFileFilter

      public CoordinateFileFilter()
      Public Constructor.
  • Method Details

    • accept

      public boolean accept(File file)

      This method returns true if the file is a valid coordinate file (xyz, pdb).

      Specified by:
      accept in class FileFilter
    • acceptDeep

      public boolean acceptDeep(File file)
      acceptDeep
      Parameters:
      file - a File object.
      Returns:
      Whether a valid coordinate file.
    • getDescription

      public String getDescription()

      Provides a description of the CoordinateFileFilter.

      Specified by:
      getDescription in class FileFilter