|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.pentec.gui.windows.AdaptWindowManager
public class AdaptWindowManager
AdaptWindowManager
| Field Summary | |
|---|---|
(package private) static java.awt.event.WindowAdapter |
windowAdapter
|
private static java.util.Vector |
windows
|
| Constructor Summary | |
|---|---|
AdaptWindowManager()
|
|
| Method Summary | |
|---|---|
static void |
addWindow(AdaptWindow window)
|
static void |
close(AdaptWindow callingFrame)
Menu callback (File -> Close) for SimpleMenuBar |
static boolean |
contains(AdaptWindow window)
|
static java.awt.Frame |
findActiveFrame()
Step through all open windows and find the active one |
static int |
getNumWindows()
|
static AdaptWindow[] |
getWindows()
Get a list of AdaptWindows in array format. |
static boolean |
removeWindow(AdaptWindow window)
|
static void |
setBoundsBottom(java.awt.Window window,
java.awt.Rectangle r,
int iWidth,
int iHeight)
This method positions a window to the bottom of a box. |
static void |
setBoundsBottom(java.awt.Window w1,
java.awt.Window w2)
Position window 2 below window 1 |
static void |
setBoundsCenter(java.awt.Window window,
java.awt.Rectangle r,
int iWidth,
int iHeight)
This method positions a window in the middle of a box |
static void |
setBoundsCenter(java.awt.Window w1,
java.awt.Window w2)
Position window 2 in the center of window 1 |
static void |
setBoundsLeft(AdaptWindow w1,
java.awt.Window w2)
Position window 2 to the left of window 1 |
private static void |
setBoundsLeft(java.awt.Window window,
java.awt.Rectangle r,
int iWidth,
int iHeight)
This method positions a window to the left of a box. |
static void |
setBoundsRight(AdaptWindow w1,
java.awt.Window w2)
Position window 2 to the right of window 1 |
static void |
setBoundsRight(AdaptWindow w1,
java.awt.Window w2,
boolean doSize)
Position window 2 to the right of window 1 |
static void |
setBoundsRight(java.awt.Window window,
java.awt.Rectangle r,
int iWidth,
int iHeight)
This method positions a window to the right of a rectangle. |
static void |
setBoundsScreenCenter(java.awt.Window window,
int iWidth,
int iHeight)
This method sets the window size and positions it in the middle of the screen |
static void |
setBoundsStacked(java.awt.Window window,
java.awt.Rectangle r)
This method positions a window to the right and down relative to an input box. |
static void |
setBoundsStacked(java.awt.Window window,
java.awt.Rectangle r,
boolean doSize)
This method positions a window to the right and down relative to an input box. |
static void |
setBoundsTop(java.awt.Window window,
java.awt.Rectangle r,
int iWidth,
int iHeight)
This method positions a window to the top of a box. |
static void |
setLocationScreenRandom(java.awt.Window window)
This method positions a window at a random location on the screen while ensuring that as much as possible of the entire window is visible. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static java.awt.event.WindowAdapter windowAdapter
private static final java.util.Vector windows
| Constructor Detail |
|---|
public AdaptWindowManager()
| Method Detail |
|---|
public static void addWindow(AdaptWindow window)
public static void close(AdaptWindow callingFrame)
public static boolean contains(AdaptWindow window)
public static java.awt.Frame findActiveFrame()
public static int getNumWindows()
public static AdaptWindow[] getWindows()
public static boolean removeWindow(AdaptWindow window)
public static void setBoundsBottom(java.awt.Window window,
java.awt.Rectangle r,
int iWidth,
int iHeight)
window - the window to positionr - the rectangle defining a box to position the window besideiWidth - the width of the windowiHeight - the height of the window
public static void setBoundsBottom(java.awt.Window w1,
java.awt.Window w2)
public static void setBoundsCenter(java.awt.Window window,
java.awt.Rectangle r,
int iWidth,
int iHeight)
window - the window to positionr - the rectangle defining a box to position the window iniWidth - the width of the windowiHeight - the height of the window
public static void setBoundsCenter(java.awt.Window w1,
java.awt.Window w2)
public static void setBoundsLeft(AdaptWindow w1,
java.awt.Window w2)
private static void setBoundsLeft(java.awt.Window window,
java.awt.Rectangle r,
int iWidth,
int iHeight)
window - the window to positionr - the rectangle defining a box to position the window besideiWidth - the width of the windowiHeight - the height of the window
public static void setBoundsRight(AdaptWindow w1,
java.awt.Window w2)
public static void setBoundsRight(AdaptWindow w1,
java.awt.Window w2,
boolean doSize)
public static void setBoundsRight(java.awt.Window window,
java.awt.Rectangle r,
int iWidth,
int iHeight)
window - the window to positionr - the rectangle defining a box to position the window besideiWidth - the width of the windowiHeight - the height of the window
public static void setBoundsScreenCenter(java.awt.Window window,
int iWidth,
int iHeight)
window - the window to positioniWidth - the width of the windowiHeight - the height of the window
public static void setBoundsStacked(java.awt.Window window,
java.awt.Rectangle r)
window - the window to positionr - the rectangle defining a box to position the window beside
public static void setBoundsStacked(java.awt.Window window,
java.awt.Rectangle r,
boolean doSize)
window - the window to positionr - the rectangle defining a box to position the window besidedoSize - flag indicating whether or not to autosize the new window
public static void setBoundsTop(java.awt.Window window,
java.awt.Rectangle r,
int iWidth,
int iHeight)
window - the window to positionr - the rectangle defining a box to position the window besideiWidth - the width of the windowiHeight - the height of the windowpublic static void setLocationScreenRandom(java.awt.Window window)
window - the window to position
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||