|
||||||||||
| 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(Component pComponent)
Centers a component on the screen. |
static void |
center(Component pComponent,
Component pOtherComponent)
Centers a component over another component. |
static Point |
getObjectCenterLocation(Component pComponent,
Component pOtherComponent)
Gets the coordinates for a component to center it over another component. |
static Point |
getScreenCenterLocation(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 Point getScreenCenterLocation(Dimension pDimension)
pDimension - a component dimension
public static void center(Component pComponent)
pComponent - the component
public static Point getObjectCenterLocation(Component pComponent,
Component pOtherComponent)
pComponent - the component that should be centeredpOtherComponent - the reference component
public static void center(Component pComponent,
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 | |||||||||