ij.gui
Class GUI

java.lang.Object
  extended by ij.gui.GUI

public class GUI
extends Object

This class consists of static GUI utility methods.


Constructor Summary
GUI()
           
 
Method Summary
static void center(Window win)
          Positions the specified window in the center of the screen.
static Image createBlankImage(int width, int height)
          Creates a white AWT Image image of the specified size.
static void fix(Scrollbar sb)
          Lightens overly dark scrollbar background on Windows 8.
static Rectangle getMaxWindowBounds()
           
static Rectangle getUnionOfBounds()
           
static Rectangle getZeroBasedMaxBounds()
           
 
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(Window win)
Positions the specified window in the center of the screen.


getMaxWindowBounds

public static Rectangle getMaxWindowBounds()

getZeroBasedMaxBounds

public static Rectangle getZeroBasedMaxBounds()

getUnionOfBounds

public static Rectangle getUnionOfBounds()

createBlankImage

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


fix

public static void fix(Scrollbar sb)
Lightens overly dark scrollbar background on Windows 8.



Copyright © 1997–2015 NIH. All rights reserved.