|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.miginfocom.layout.LayoutCallback
public abstract class LayoutCallback
A class to extend if you want to provide more control over where a component is placed or the size of it.
Note! Returned arrays from this class will never be altered. This means that caching of arrays in these methods is OK.
Constructor Summary | |
---|---|
LayoutCallback()
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LayoutCallback()
Method Detail |
---|
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).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |