calculate
public java.awt.Point calculate(int enclosingWidth,
int enclosingHeight,
int width,
int height,
int insetLeft,
int insetRight,
int insetTop,
int insetBottom)
Description copied from interface: Position
Calculates the position of an object enclosed by an enclosing object.
- Specified by:
calculate in interface Position
- Parameters:
enclosingWidth - The width of the enclosing object that is
to contain the enclosed object.
enclosingHeight - The height of the enclosing object that is
to contain the enclosed object.
width - The width of the object that is to be
placed inside an enclosing object.
height - The height of the object that is to be
placed inside an enclosing object.
insetLeft - The inset on the left-hand side of the
object to be enclosed.
insetRight - The inset on the right-hand side of the
object to be enclosed.
insetTop - The inset on the top side of the
object to be enclosed.
insetBottom - The inset on the bottom side of the
object to be enclosed.
- Returns:
- The position to place the object.