Package ij.gui

Class GUI


  • public class GUI
    extends java.lang.Object
    This class consists of static GUI utility methods.
    • Constructor Summary

      Constructors 
      Constructor Description
      GUI()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void center​(java.awt.Window win)
      Positions the specified window in the center of the screen.
      static java.awt.Image createBlankImage​(int width, int height)
      Creates a white AWT Image image of the specified size.
      static void fix​(java.awt.Scrollbar sb)
      Lightens overly dark scrollbar background on Windows 8.
      static java.awt.Rectangle getMaxWindowBounds()  
      static java.awt.Rectangle getUnionOfBounds()  
      static java.awt.Rectangle getZeroBasedMaxBounds()  
      static boolean showCompositeAdvisory​(ImagePlus imp, java.lang.String title)  
      • Methods inherited from class java.lang.Object

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

      • GUI

        public GUI()
    • Method Detail

      • center

        public static void center​(java.awt.Window win)
        Positions the specified window in the center of the screen.
      • getMaxWindowBounds

        public static java.awt.Rectangle getMaxWindowBounds()
      • getZeroBasedMaxBounds

        public static java.awt.Rectangle getZeroBasedMaxBounds()
      • getUnionOfBounds

        public static java.awt.Rectangle getUnionOfBounds()
      • createBlankImage

        public static java.awt.Image createBlankImage​(int width,
                                                      int height)
        Creates a white AWT Image image of the specified size.
      • fix

        public static void fix​(java.awt.Scrollbar sb)
        Lightens overly dark scrollbar background on Windows 8.
      • showCompositeAdvisory

        public static boolean showCompositeAdvisory​(ImagePlus imp,
                                                    java.lang.String title)