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>
Tvoid
attach
(GuiControl parent) void
void
clone()
void
detach
(GuiControl parent) protected Vector3f
protected void
void
removeChild
(Node n) void
Methods inherited from class com.simsilica.lemur.component.AbstractGuiComponent
getGuiControl, getNode, isAttached
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.simsilica.lemur.core.GuiComponent
getGuiControl, isAttached
-
Constructor Details
-
BorderLayout
public BorderLayout()
-
-
Method Details
-
clone
- Specified by:
clone
in interfaceGuiComponent
- Specified by:
clone
in interfaceGuiLayout
- Overrides:
clone
in classAbstractGuiComponent
-
invalidate
protected void invalidate()- Overrides:
invalidate
in classAbstractGuiComponent
-
getPreferredSize
-
calculatePreferredSize
- Specified by:
calculatePreferredSize
in interfaceGuiComponent
-
reshape
- Specified by:
reshape
in interfaceGuiComponent
-
addChild
-
addChild
-
removeChild
- Specified by:
removeChild
in interfaceGuiLayout
-
getChildren
- Specified by:
getChildren
in interfaceGuiLayout
-
clearChildren
public void clearChildren()- Specified by:
clearChildren
in interfaceGuiLayout
-
attach
- Specified by:
attach
in interfaceGuiComponent
- Overrides:
attach
in classAbstractGuiComponent
-
detach
- Specified by:
detach
in interfaceGuiComponent
- Overrides:
detach
in classAbstractGuiComponent
-