|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.retek.commons.gui.util.WindowPlacer
This class is used to calculate the placement (x and y coordinates) of a window on either the desktop or another window. Note that RFrame and RDialog windows are both children of the Window class and can be used with these methods.
Retek Inc. Copyright (c) 2002
Method Summary | |
---|---|
static void |
centerOnOwner(java.awt.Window window)
Centers a window within its owner window. |
static void |
centerOnWindow(java.awt.Window parent,
java.awt.Window child)
Centers a window within another window. |
static void |
centerOnWindow(java.awt.Window parent,
java.awt.Window child,
int xoffset,
int yoffset)
Centers a window within another window. |
static void |
centerWindow(java.awt.Window window)
Centers a window on the desktop. |
static void |
displayWindow(java.awt.Window parent,
java.awt.Window child,
int x,
int y)
|
static void |
displayWindows(java.awt.Window parent,
java.util.List childList,
int x,
int y)
Displays a list of windows on a parent window. |
static void |
indentOnOwner(java.awt.Window window,
int x,
int y)
Indents a window within its owner. |
static void |
indentWindow(java.awt.Window parent,
java.awt.Window child,
int x,
int y)
Indents a window within another window. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static void centerWindow(java.awt.Window window)
window
- The window to center on the desktop.public static void centerOnWindow(java.awt.Window parent, java.awt.Window child)
parent
- The window to be centered on.child
- The window to be centered.public static void centerOnWindow(java.awt.Window parent, java.awt.Window child, int xoffset, int yoffset)
parent
- The window to be centered on.child
- The window to be centered.xoffset
- The offset form the centered x location.yoffset
- The offset from the centered y location.public static void centerOnOwner(java.awt.Window window)
window
- The window to be centered.public static void indentWindow(java.awt.Window parent, java.awt.Window child, int x, int y)
parent
- The parent window to start indentation from.child
- The window to indent.x
- The number of pixels to indent on the X axis.y
- The number of pixels to indent on the Y axis.public static void indentOnOwner(java.awt.Window window, int x, int y)
window
- The window to be indented.x
- The number of pixels to indent on the X axis.y
- The number of pixels to indent on the Y axis.public static void displayWindows(java.awt.Window parent, java.util.List childList, int x, int y)
parent
- The parent window to start indentation from.childList
- A list of window to indent on the parent.x
- The number of pixels to indent on the X axis.y
- The number of pixels to indent on the Y axis.public static void displayWindow(java.awt.Window parent, java.awt.Window child, int x, int y)
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |