net.miginfocom.layout
public abstract class LayoutCallback extends Object
Note! Returned arrays from this class will never be altered. This means that caching of arrays in these methods is OK.
Method Summary | |
---|---|
void | correctBounds(ComponentWrapper comp) A last minute change of the bounds. |
UnitValue[] | getPosition(ComponentWrapper comp) Returns a position similar to the "pos" the component constraint. |
BoundSize[] | getSize(ComponentWrapper comp) Returns a size similar to the "width" and "height" in the component constraint. |
Parameters: comp The component wrapper that holds the actual component (JComponent is Swing and Control in SWT).
Parameters: comp The component wrapper that holds the actual component (JComponent is Swing and Control in SWT). Should not be altered.
Returns: The [x, y, x2, y2] as explained in the documentation for "pos". If null
is returned nothing is done and this is the default.
See Also: UnitValue ConstraintParser
Parameters: comp The component wrapper that holds the actual component (JComponent is Swing and Control in SWT). Should not be altered.
Returns: The [width, height] as explained in the documentation for "width" and "height". If null
is returned nothing is done and this is the default.
See Also: BoundSize ConstraintParser