Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.scopemvc.view.awt
Class AWTUtilities  view AWTUtilities download AWTUtilities.java

java.lang.Object
  extended byorg.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.4 $ $Date: 2002/01/26 09:46:20 $

Field Summary
private static org.apache.commons.logging.Log LOG
           
 
Constructor Summary
private AWTUtilities()
           
 
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 org.scopemvc.core.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
private static java.awt.Rectangle getCenteredBounds(java.awt.Dimension inWindowSize)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

private static final org.apache.commons.logging.Log LOG
Constructor Detail

AWTUtilities

private AWTUtilities()
Method Detail

findControlIssuer

public static org.scopemvc.core.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.


centreOnScreen

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


getCenteredBounds

private static java.awt.Rectangle getCenteredBounds(java.awt.Dimension inWindowSize)

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)


fitOnScreen

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