loci.formats.gui
Class GUITools

java.lang.Object
  extended by loci.formats.gui.GUITools

public final class GUITools
extends Object

A utility class for working with graphical user interfaces.

Source code:
Trac, SVN

Author:
Curtis Rueden ctrueden at wisc.edu

Method Summary
static JFileChooser buildFileChooser(FileFilter[] filters)
          Builds a file chooser with the given file filters, as well as an "All supported file types" combo filter.
static JFileChooser buildFileChooser(FileFilter[] filters, boolean preview)
          Builds a file chooser with the given file filters, as well as an "All supported file types" combo filter.
static JFileChooser buildFileChooser(loci.formats.IFormatHandler handler)
          Constructs a file chooser for the given file format handler.
static JFileChooser buildFileChooser(loci.formats.IFormatHandler handler, boolean preview)
          Constructs a file chooser for the given file format handler.
static FileFilter[] buildFileFilters(loci.formats.IFormatHandler handler)
          Constructs a list of file filters for the given file format handler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

buildFileFilters

public static FileFilter[] buildFileFilters(loci.formats.IFormatHandler handler)
Constructs a list of file filters for the given file format handler.


buildFileChooser

public static JFileChooser buildFileChooser(loci.formats.IFormatHandler handler)
Constructs a file chooser for the given file format handler.


buildFileChooser

public static JFileChooser buildFileChooser(loci.formats.IFormatHandler handler,
                                            boolean preview)
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

public static JFileChooser buildFileChooser(FileFilter[] filters)
Builds a file chooser with the given file filters, as well as an "All supported file types" combo filter.


buildFileChooser

public static JFileChooser buildFileChooser(FileFilter[] filters,
                                            boolean preview)
Builds a file chooser with the given file filters, as well as an "All supported file types" combo filter. If preview flag is set, chooser has an preview pane showing a thumbnail and other information for the selected file.