public class ElementLayoutHelper extends java.lang.Object implements IElementLayoutHelper
IElementLayoutHelper.LayoutFactory| Constructor and Description |
|---|
ElementLayoutHelper(IElementLayoutHelper.LayoutFactory layoutFactory,
int width,
int height,
IElementGroup parent) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(IGuiElement element) |
void |
clear()
Removes all layouts and resets all variables of this helper.
|
void |
finish(boolean center)
Adds the layouts to the parent of the
IElementGroup. |
java.util.Collection<IElementLayout> |
layouts() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfinishpublic ElementLayoutHelper(IElementLayoutHelper.LayoutFactory layoutFactory, int width, int height, IElementGroup parent)
public boolean add(IGuiElement element)
add in interface IElementLayoutHelperpublic void finish(boolean center)
IElementLayoutHelperIElementGroup. And calls IElementLayoutHelper.clear()finish in interface IElementLayoutHelperpublic void clear()
IElementLayoutHelperclear in interface IElementLayoutHelperpublic java.util.Collection<IElementLayout> layouts()
layouts in interface IElementLayoutHelperIElementLayoutHelper.clear() or IElementLayoutHelper.finish().