|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LayoutManager
The Layout interface must be implemented by all Layout Managers. It defines the basic interface to layout components. Implementation note: Most of the standard LayoutManager implementation will only be instantiated once and the same instance will be shared by multiple Elements. This is done to save runtime and memory costs when using lots of Elements. That's why it's probably a good idea to not use any instance variables in LayoutManager implementations!
Method Summary | |
---|---|
SizeValue |
calculateConstraintHeight(LayoutPart root,
List<LayoutPart> children)
Calculates a new Height constraint. |
SizeValue |
calculateConstraintWidth(LayoutPart root,
List<LayoutPart> children)
Calculates a new Width constraint. |
void |
layoutElements(LayoutPart root,
List<LayoutPart> children)
Layout the given elements using the given root element as the parent element. |
Method Detail |
---|
void layoutElements(LayoutPart root, List<LayoutPart> children)
root
- root element all children belong tochildren
- children elements of the root elementSizeValue calculateConstraintWidth(LayoutPart root, List<LayoutPart> children)
children
- children elements of the root element
SizeValue calculateConstraintHeight(LayoutPart root, List<LayoutPart> children)
children
- children elements of the root element
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |