org.acm.seguin.awt
Class CenterDialog

java.lang.Object
  extended by org.acm.seguin.awt.CenterDialog

public class CenterDialog
extends java.lang.Object

This object is responsible for centering the dialog box on the screen.

Author:
Chris Seguin

Method Summary
static void center(javax.swing.JDialog dialog)
          Actually does the work to center the dialog, but uses the EditorOperation's frame to determine what to center the dialog over.
static void center(javax.swing.JDialog dialog, javax.swing.JFrame parent)
          Actually does the work
static void center(javax.swing.JDialog dialog, UMLPackage umlPackage)
          Center the dailog on a diagram's frame
static void center(javax.swing.JDialog dialog, net.sourceforge.jrefactory.uml.UMLPackage umlPackage)
          Center the dailog on a diagram's frame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

center

public static void center(javax.swing.JDialog dialog,
                          javax.swing.JFrame parent)
Actually does the work

Parameters:
dialog - The dialog box
parent - the frame we are centering the dialog over or null if we should center it on the screen

center

public static void center(javax.swing.JDialog dialog)
Actually does the work to center the dialog, but uses the EditorOperation's frame to determine what to center the dialog over.

Parameters:
dialog - The dialog box

center

public static void center(javax.swing.JDialog dialog,
                          UMLPackage umlPackage)
Center the dailog on a diagram's frame

Parameters:
dialog - the diagram
umlPackage - the frame

center

public static void center(javax.swing.JDialog dialog,
                          net.sourceforge.jrefactory.uml.UMLPackage umlPackage)
Center the dailog on a diagram's frame

Parameters:
dialog - the diagram
umlPackage - the frame