Class XYZFileFilter

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

public final class XYZFileFilter extends FileFilter
The XYZFileFilter class is used to choose a TINKER Cartesian Coordinate (*.XYZ) file.
Since:
1.0
Author:
Michael J. Schnieders
  • Constructor Details

    • XYZFileFilter

      public XYZFileFilter()
      Public Constructor.
  • Method Details

    • isXYZ

      public static boolean isXYZ(File file)
      This is a static version of the accept method.

      This method return true if the file is a directory or TINKER Cartesian coordinate (*.XYZ) file.

      Parameters:
      file - The File to examine.
      Returns:
      Returns true if this an XYZ file.
    • accept

      public boolean accept(File file)

      This method return true if the file is a directory or TINKER Cartesian coordinate (*.XYZ) file.

      Specified by:
      accept in class FileFilter
    • acceptDeep

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

      public String getDescription()

      Provides a description of the XYZFileFilter.

      Specified by:
      getDescription in class FileFilter