Package com.simsilica.lemur.component
Class BorderLayout
java.lang.Object
com.simsilica.lemur.component.AbstractGuiComponent
com.simsilica.lemur.component.BorderLayout
- All Implemented Interfaces:
GuiComponent,GuiLayout,Cloneable
A layout that manages children similar to Swing's BorderLayout where
children can be placed in any of Position enum values (Position.Center,
Position.North, etc.) Currently this layout operates only in the x/y
axes.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends Node>
TaddChild(BorderLayout.Position pos, T n) <T extends Node>
Tvoidattach(GuiControl parent) voidvoidclone()voiddetach(GuiControl parent) protected Vector3fprotected voidvoidremoveChild(Node n) voidMethods inherited from class com.simsilica.lemur.component.AbstractGuiComponent
getGuiControl, getNode, isAttachedMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.simsilica.lemur.core.GuiComponent
getGuiControl, isAttached
-
Constructor Details
-
BorderLayout
public BorderLayout()
-
-
Method Details
-
clone
- Specified by:
clonein interfaceGuiComponent- Specified by:
clonein interfaceGuiLayout- Overrides:
clonein classAbstractGuiComponent
-
invalidate
protected void invalidate()- Overrides:
invalidatein classAbstractGuiComponent
-
getPreferredSize
-
calculatePreferredSize
- Specified by:
calculatePreferredSizein interfaceGuiComponent
-
reshape
- Specified by:
reshapein interfaceGuiComponent
-
addChild
-
addChild
-
removeChild
- Specified by:
removeChildin interfaceGuiLayout
-
getChildren
- Specified by:
getChildrenin interfaceGuiLayout
-
clearChildren
public void clearChildren()- Specified by:
clearChildrenin interfaceGuiLayout
-
attach
- Specified by:
attachin interfaceGuiComponent- Overrides:
attachin classAbstractGuiComponent
-
detach
- Specified by:
detachin interfaceGuiComponent- Overrides:
detachin classAbstractGuiComponent
-