|
juife v0.1a |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.juife.JuifeUtils
public class JuifeUtils
A collection of utility methods.
Method Summary | |
---|---|
static java.awt.Point |
centerLocation(java.awt.Component component,
java.awt.Component parent)
Calculates the location that can be used to center component related to parent . |
static java.awt.Dimension |
getUnionSize(java.awt.Component c1,
java.awt.Component c2)
Gets the union size of the specified components. |
static java.awt.Dimension |
getUnionSize(java.awt.Component c1,
java.awt.Dimension d2)
Gets the union size of the specified component and dimension using the component's preferred size. |
static java.awt.Dimension |
getUnionSize(java.awt.Dimension d1,
java.awt.Dimension d2)
Gets the union size of the specified dimensions. |
static java.awt.Window |
getWindow(java.awt.Component c)
Gets the toplevel window of the specified component. |
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 centerLocation(java.awt.Component component, java.awt.Component parent)
component
related to parent
.
component
related to parent
.Component.setLocation(Point p)
public static java.awt.Dimension getUnionSize(java.awt.Component c1, java.awt.Component c2)
getUnionSize(Dimension d1, Dimension d2)
method using the components' preferred size.
public static java.awt.Dimension getUnionSize(java.awt.Component c1, java.awt.Dimension d2)
public static java.awt.Dimension getUnionSize(java.awt.Dimension d1, java.awt.Dimension d2)
public static java.awt.Window getWindow(java.awt.Component c)
c
- The component whose toplevel window should be obtained.
null
.
|
juife v0.1a |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2005 Grigor Iliev. All rights reserved. |