public class LayoutPart extends Object
| Constructor and Description |
|---|
LayoutPart()
Create a new instance.
|
LayoutPart(Box newBox,
BoxConstraints newBoxConstraints)
Create a new LayoutPart instance.
|
LayoutPart(LayoutPart src)
copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Box |
getBox()
Get the box of this LayoutPart.
|
BoxConstraints |
getBoxConstraints()
Get the box constraints for this LayoutPart.
|
SizeValue |
getMaxHeight(List<LayoutPart> children)
Calculates the maximum height of the given child elements.
|
SizeValue |
getMaxWidth(List<LayoutPart> children)
Calculates the maximum width of the given child elements.
|
SizeValue |
getSumHeight(List<LayoutPart> children)
Calculates the sum of the height of all children.
|
SizeValue |
getSumWidth(List<LayoutPart> children)
Calculates the sum of the width of all children.
|
String |
toString() |
public LayoutPart()
public LayoutPart(Box newBox, BoxConstraints newBoxConstraints)
newBox - the new boxnewBoxConstraints - the new box constraintspublic LayoutPart(LayoutPart src)
src - sourcepublic final Box getBox()
public final BoxConstraints getBoxConstraints()
public SizeValue getMaxWidth(List<LayoutPart> children)
children - Listpublic SizeValue getMaxHeight(List<LayoutPart> children)
children - Listpublic SizeValue getSumWidth(List<LayoutPart> children)
children - Listpublic SizeValue getSumHeight(List<LayoutPart> children)
children - ListCopyright © 2013. All Rights Reserved.