|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sibvisions.util.type.ScreenUtil
public final class ScreenUtil
The ScreenUtil contains utility methods which solves common screen problems.
| Method Summary | |
|---|---|
static void |
center(java.awt.Component pComponent)
Centers a component on the screen. |
static void |
center(java.awt.Component pComponent,
java.awt.Component pOtherComponent)
Centers a component over another component. |
static java.awt.Point |
getObjectCenterLocation(java.awt.Component pComponent,
java.awt.Component pOtherComponent)
Gets the coordinates for a component to center it over another component. |
static java.awt.Point |
getScreenCenterLocation(java.awt.Dimension pDimension)
Gets the screen centered coordinates for the given component size. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.awt.Point getScreenCenterLocation(java.awt.Dimension pDimension)
pDimension - a component dimension
public static void center(java.awt.Component pComponent)
pComponent - the component
public static java.awt.Point getObjectCenterLocation(java.awt.Component pComponent,
java.awt.Component pOtherComponent)
pComponent - the component that should be centeredpOtherComponent - the reference component
public static void center(java.awt.Component pComponent,
java.awt.Component pOtherComponent)
pComponent - the component that should be centeredpOtherComponent - the reference component
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||