hoplugins.commons.ui
Class PositioningUtilities

java.lang.Object
  extended byhoplugins.commons.ui.PositioningUtilities

public class PositioningUtilities
extends java.lang.Object

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

PositioningUtilities

public PositioningUtilities()
Method Detail

centerDialogInParent

public static void centerDialogInParent(java.awt.Dialog dialog)
Method that place Dialog in the center of his parent

Parameters:
dialog -

centerFrameOnScreen

public static void centerFrameOnScreen(java.awt.Window window)
Method the center the frame in the center of the screen

Parameters:
window -

positionDialogRelativeToParent

public static void positionDialogRelativeToParent(java.awt.Dialog dialog,
                                                  double x,
                                                  double y)
Method that place the dialog relative to the parent

Parameters:
dialog -
x - horizontal placement (0-1)
y - vertical placement (0-1)

positionFrameOnScreen

public static void positionFrameOnScreen(java.awt.Window window,
                                         double x,
                                         double y)
Method that place the window relative to the screen

Parameters:
window -
x - horizontal placement (0-1)
y - vertical placement (0-1)

positionFrameRandomly

public static void positionFrameRandomly(java.awt.Window window)
Method that place the window randomly in the screen

Parameters:
window -


Copyright © 2005 Hattrick Organizer Plugins Project. All Rights Reserved.