Package com.simsilica.lemur.component
Class BoxLayout
java.lang.Object
com.simsilica.lemur.component.AbstractGuiComponent
com.simsilica.lemur.component.BoxLayout
- All Implemented Interfaces:
GuiComponent
,GuiLayout
,Cloneable
A layout that manages children similar to Swing's BoxLayout.
Components are arranged along an Axis and the children are
stretched to fit the maximum component width. This is similar
to a single column or single row SpringGridLayout and in the
future may be deprecated in lieu of that class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends Node>
Tvoid
attach
(GuiControl parent) void
void
clone()
void
detach
(GuiControl parent) 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
-
BoxLayout
public BoxLayout() -
BoxLayout
-
-
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
-
calculatePreferredSize
- Specified by:
calculatePreferredSize
in interfaceGuiComponent
-
reshape
- Specified by:
reshape
in interfaceGuiComponent
-
addChild
-
removeChild
- Specified by:
removeChild
in interfaceGuiLayout
-
attach
- Specified by:
attach
in interfaceGuiComponent
- Overrides:
attach
in classAbstractGuiComponent
-
detach
- Specified by:
detach
in interfaceGuiComponent
- Overrides:
detach
in classAbstractGuiComponent
-
getChildren
- Specified by:
getChildren
in interfaceGuiLayout
-
clearChildren
public void clearChildren()- Specified by:
clearChildren
in interfaceGuiLayout
-