|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthoplugins.commons.ui.PositioningUtilities
Class of Utility for positioning of Frames and Dialog
Constructor Summary | |
PositioningUtilities()
|
Method Summary | |
static void |
centerDialogInParent(java.awt.Dialog dialog)
Method that place Dialog in the center of his parent |
static void |
centerFrameOnScreen(java.awt.Window window)
Method the center the frame in the center of the screen |
static void |
positionDialogRelativeToParent(java.awt.Dialog dialog,
double x,
double y)
Method that place the dialog relative to the parent |
static void |
positionFrameOnScreen(java.awt.Window window,
double x,
double y)
Method that place the window relative to the screen |
static void |
positionFrameRandomly(java.awt.Window window)
Method that place the window randomly in the screen |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PositioningUtilities()
Method Detail |
public static void centerDialogInParent(java.awt.Dialog dialog)
dialog
- public static void centerFrameOnScreen(java.awt.Window window)
window
- public static void positionDialogRelativeToParent(java.awt.Dialog dialog, double x, double y)
dialog
- x
- horizontal placement (0-1)y
- vertical placement (0-1)public static void positionFrameOnScreen(java.awt.Window window, double x, double y)
window
- x
- horizontal placement (0-1)y
- vertical placement (0-1)public static void positionFrameRandomly(java.awt.Window window)
window
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |