Analytical Perspectives in Game Design


 

All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class bvyy.awt.WindowTools

java.lang.Object
   |
   +----bvyy.awt.WindowTools

public class WindowTools
extends Object
This class provides a set of useful tools to manipulate windows.

Version:
0.0.1 18 June 1998
Author:
(c)1998 Brian Voon Yee Yap

Constructor Index

 o WindowTools()
a do nothing constructor.

Method Index

 o getWindowCenter(Window)
 o getWindowCenter(Window, int, int, int, int)
 o setWindowCentered(Window)
This method centers the window in the middle of the screen.
 o setWindowCentered(Window, int, int, int, int)
This will center the window given the selected gutters.
 o setWindowCentered(Window, int, int, int, int, int, int)
This will center the window given the selected gutters.

Constructors

 o WindowTools
 public WindowTools()
a do nothing constructor.

Methods

 o setWindowCentered
 public static void setWindowCentered(Window theWindow,
                                      int topGutter,
                                      int bottomGutter,
                                      int leftGutter,
                                      int rightGutter,
                                      int minHeight,
                                      int minWidth)
This will center the window given the selected gutters.

Parameters:
theWindow - The window to be centered.
topGutter - The gutter at the top of the screen.
bottomGutter - The gutter at the bottom of the screen.
leftGutter - The gutter at the left of the screen.
rightGutter - The gutter at the right of the screen.
minHeight - The minimum height of the window.
minWidth - The minimum width of the window.
 o setWindowCentered
 public static void setWindowCentered(Window theWindow,
                                      int topGutter,
                                      int bottomGutter,
                                      int leftGutter,
                                      int rightGutter)
This will center the window given the selected gutters.

Parameters:
theWindow - The window to be centered.
topGutter - The gutter at the top of the screen.
bottomGutter - The gutter at the bottom of the screen.
leftGutter - The gutter at the left of the screen.
rightGutter - The gutter at the right of the screen.
 o setWindowCentered
 public static void setWindowCentered(Window theWindow)
This method centers the window in the middle of the screen.

 o getWindowCenter
 public static Dimension getWindowCenter(Window theWindow,
                                         int topGutter,
                                         int bottomGutter,
                                         int leftGutter,
                                         int rightGutter)
 o getWindowCenter
 public static Dimension getWindowCenter(Window theWindow)

All Packages  Class Hierarchy  This Package  Previous  Next  Index

22/11/99

 


See also: [Role Playing Games] [Game Engine]
© 1998, 1999 Brian Yap. These pages are available under the GNU licence.