public class HorizontalLayout extends Object implements LayoutManager
Constructor and Description |
---|
HorizontalLayout() |
Modifier and Type | Method and Description |
---|---|
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 elements.
|
public final void layoutElements(LayoutPart root, List<LayoutPart> children)
layoutElements
in interface LayoutManager
root
- the root elementchildren
- the childrenpublic final SizeValue calculateConstraintWidth(LayoutPart root, List<LayoutPart> children)
LayoutManager
calculateConstraintWidth
in interface LayoutManager
children
- children elements of the root elementpublic final SizeValue calculateConstraintHeight(LayoutPart root, List<LayoutPart> children)
LayoutManager
calculateConstraintHeight
in interface LayoutManager
children
- children elements of the root elementCopyright © 2013. All Rights Reserved.