Package loci.formats.gui
Class GUITools
java.lang.Object
loci.formats.gui.GUITools
A utility class for working with graphical user interfaces.
-
Method Summary
Modifier and TypeMethodDescriptionstatic JFileChooserbuildFileChooser(FileFilter[] filters) Builds a file chooser with the given file filters, as well as an "All supported file types" combo filter.static JFileChooserbuildFileChooser(FileFilter[] filters, boolean preview) Builds a file chooser with the given file filters, as well as an "All supported file types" combo filter, if one is not already specified.static JFileChooserConstructs a file chooser for the given file format handler.static JFileChooserbuildFileChooser(loci.formats.IFormatHandler handler, boolean preview) Constructs a file chooser for the given file format handler.static FileFilter[]Constructs a list of file filters for the given file format handler.
-
Method Details
-
buildFileFilters
Constructs a list of file filters for the given file format handler. -
buildFileChooser
Constructs a file chooser for the given file format handler. -
buildFileChooser
Constructs a file chooser for the given file format handler. If preview flag is set, chooser has an preview pane showing a thumbnail and other information for the selected file. -
buildFileChooser
Builds a file chooser with the given file filters, as well as an "All supported file types" combo filter. -
buildFileChooser
Builds a file chooser with the given file filters, as well as an "All supported file types" combo filter, if one is not already specified.- Parameters:
preview- If set, chooser has a preview pane showing a thumbnail and other information for the selected file.
-