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.
| Constructor and Description |
|---|
LayoutCallback() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public UnitValue[] getPosition(ComponentWrapper comp)
comp - The component wrapper that holds the actual component (JComponent is Swing and Control in SWT).
Should not be altered.null
is returned nothing is done and this is the default.UnitValue,
ConstraintParser.parseUnitValue(String, boolean)public BoundSize[] getSize(ComponentWrapper comp)
comp - The component wrapper that holds the actual component (JComponent is Swing and Control in SWT).
Should not be altered.null
is returned nothing is done and this is the default.BoundSize,
ConstraintParser.parseBoundSize(String, boolean, boolean)public void correctBounds(ComponentWrapper comp)
comp - The component wrapper that holds the actual component (JComponent is Swing and Control in SWT).Copyright © 2007–2021. All rights reserved.