org.scopemvc.view.awt
Class AWTUtilities

java.lang.Object
  |
  +--org.scopemvc.view.awt.AWTUtilities

public final class AWTUtilities
extends java.lang.Object

Utilities dependent on Java AWT and Scope core packages only.

Version:
$Revision: 1.7 $ $Date: 2002/09/13 17:04:38 $
Author:
Steve Meyfroidt

Method Summary
static void centreOnScreen(java.awt.Window inWindow)
          Center a window on the screen
static void centreOnWindow(java.awt.Window inParent, java.awt.Window inWindow)
          Center a window on a parent Window if showing, or if not assume position of parent is (0, 0)
static View findControlIssuer(java.awt.Component inComponent)
          Find the next View from a Component upwards in the java.awt.Component containment hierarchy that has a parent Controller that it can issue Controls to.
static void fitOnScreen(java.awt.Window inWindow)
          Make sure window fits on the screeen
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

findControlIssuer

public static View findControlIssuer(java.awt.Component inComponent)
Find the next View from a Component upwards in the java.awt.Component containment hierarchy that has a parent Controller that it can issue Controls to.

Parameters:
inComponent - The Component to find a Controller for
Returns:
The parent View bound to a non-null Controller

centreOnScreen

public static void centreOnScreen(java.awt.Window inWindow)
Center a window on the screen

Parameters:
inWindow - The Window to center

centreOnWindow

public static void centreOnWindow(java.awt.Window inParent,
                                  java.awt.Window inWindow)
Center a window on a parent Window if showing, or if not assume position of parent is (0, 0)

Parameters:
inParent - The parent Window used as reference if it's visible
inWindow - The Window to center

fitOnScreen

public static void fitOnScreen(java.awt.Window inWindow)
Make sure window fits on the screeen

Parameters:
inWindow - The Window to fit on the screen


Copyright © 2000-2002 The Scope Team. All Rights Reserved.