Class WindowTools

java.lang.Object
loci.plugins.util.WindowTools

public final class WindowTools extends Object
Utility methods for managing ImageJ dialogs and windows.
  • Constructor Details

    • WindowTools

      private WindowTools()
  • Method Details

    • addScrollBars

      public static void addScrollBars(Container pane)
      Adds AWT scroll bars to the given container.
    • placeWindow

      public static void placeWindow(Window w)
      Places the given window at a nice location on screen, either centered below the ImageJ window if there is one, or else centered on screen.
    • reportException

      public static void reportException(Throwable t)
      Reports the given exception with stack trace in an ImageJ error dialog.
    • reportException

      public static void reportException(Throwable t, boolean quiet)
      Reports the given exception with stack trace in an ImageJ error dialog.
    • reportException

      public static void reportException(Throwable t, boolean quiet, String msg)
      Reports the given exception with stack trace in an ImageJ error dialog.
    • getNumericFields

      public static List<TextField> getNumericFields(ij.gui.GenericDialog gd)
    • getCheckboxes

      public static List<Checkbox> getCheckboxes(ij.gui.GenericDialog gd)
    • getChoices

      public static List<Choice> getChoices(ij.gui.GenericDialog gd)