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.
| 构造器和说明 |
|---|
LayoutCallback() |
| 限定符和类型 | 方法和说明 |
|---|---|
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 © 2021. All rights reserved.