Class LayoutBox<T extends LayoutBox<T>>

All Implemented Interfaces:
InputBlocker<T>
Direct Known Subclasses:
HorizontalBox, VerticalBox

public abstract class LayoutBox<T extends LayoutBox<T>> extends AbstractInputBlocker<T> implements InputBlocker<T>
  • Field Details

    • sortedNodeList

      protected List<GuiNode<?>> sortedNodeList
    • nodeStartSpacing

      protected int nodeStartSpacing
    • nodeSpacing

      protected int nodeSpacing
  • Constructor Details

  • Method Details

    • sortNodes

      protected abstract void sortNodes()
    • addChild

      public T addChild(@NotNull GuiNode<?> child)
      Overrides:
      addChild in class GuiNode<T extends LayoutBox<T>>
    • removeChild

      public T removeChild(@NotNull GuiNode<?> child)
      Overrides:
      removeChild in class ParentNode<T extends LayoutBox<T>>
    • onRelayout

      protected void onRelayout()
      Overrides:
      onRelayout in class GuiNode<T extends LayoutBox<T>>
    • setNodeStartSpacing

      public T setNodeStartSpacing(int nodeStartSpacing)
    • setNodeSpacing

      public T setNodeSpacing(int nodeSpacing)
    • getNodeStartSpacing

      public int getNodeStartSpacing()
    • getNodeSpacing

      public int getNodeSpacing()
    • render

      protected void render(GuiRender render, double delta)
      Specified by:
      render in class GuiNode<T extends LayoutBox<T>>