Module ij
Package ij.io

Class SaveDialog


  • public class SaveDialog
    extends java.lang.Object
    This class displays a dialog window from which the user can save a file.
    • Constructor Summary

      Constructors 
      Constructor Description
      SaveDialog​(java.lang.String title, java.lang.String defaultName, java.lang.String extension)
      Displays a file save dialog with 'title' as the title, 'defaultName' as the initial file name, and 'extension' (e.g.
      SaveDialog​(java.lang.String title, java.lang.String defaultDir, java.lang.String defaultName, java.lang.String extension)
      Displays a file save dialog, using the specified default directory and file name and extension.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getDirectory()
      Returns the selected directory.
      java.lang.String getFileName()
      Returns the selected file name.
      static java.lang.String getPath​(ImagePlus imp, java.lang.String extension)  
      static java.lang.String setExtension​(java.lang.String name, java.lang.String extension)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SaveDialog

        public SaveDialog​(java.lang.String title,
                          java.lang.String defaultName,
                          java.lang.String extension)
        Displays a file save dialog with 'title' as the title, 'defaultName' as the initial file name, and 'extension' (e.g. ".tif") as the default extension.
      • SaveDialog

        public SaveDialog​(java.lang.String title,
                          java.lang.String defaultDir,
                          java.lang.String defaultName,
                          java.lang.String extension)
        Displays a file save dialog, using the specified default directory and file name and extension.
    • Method Detail

      • setExtension

        public static java.lang.String setExtension​(java.lang.String name,
                                                    java.lang.String extension)
      • getDirectory

        public java.lang.String getDirectory()
        Returns the selected directory.
      • getFileName

        public java.lang.String getFileName()
        Returns the selected file name.
      • getPath

        public static java.lang.String getPath​(ImagePlus imp,
                                               java.lang.String extension)