|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.lessvoid.nifty.layout.manager.CenterLayout
public class CenterLayout
CenterLayout centers the very first child only in the given root element. Remember that center probably makes only sense if the centered element has some width and height constraints set.
Constructor Summary | |
---|---|
CenterLayout()
|
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 rootElement,
List<LayoutPart> elements)
layoutElements. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CenterLayout()
Method Detail |
---|
public void layoutElements(LayoutPart rootElement, List<LayoutPart> elements)
layoutElements
in interface LayoutManager
rootElement
- @see LayoutManager
elements
- @see LayoutManager
public SizeValue calculateConstraintWidth(LayoutPart root, List<LayoutPart> children)
LayoutManager
calculateConstraintWidth
in interface LayoutManager
children
- children elements of the root element
public SizeValue calculateConstraintHeight(LayoutPart root, List<LayoutPart> children)
LayoutManager
calculateConstraintHeight
in interface LayoutManager
children
- children elements of the root element
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |