Class GuiFragmentTree

java.lang.Object
com.render.api.gui.pagination.GuiFragmentTree

public final class GuiFragmentTree extends Object
Immutable fragment tree projection separate from the retained source tree.

Entries stay in paint order. Identity lookup deliberately compares source instances rather than component equality.

  • Field Details

  • Constructor Details

  • Method Details

    • fragments

      public List<GuiFragment> fragments()
    • fragmentsOf

      public List<GuiFragment> fragmentsOf(GuiComponent<?> source)
    • page

      public List<GuiFragment> page(int pageIndex)
    • column

      public List<GuiFragment> column(int columnIndex)
    • hitTest

      public Optional<GuiFragment> hitTest(float x, float y)
      Resolves the topmost generated fragment at a design-space point.

      Lookup walks reverse paint order and therefore provides the mapping a paginated input adapter needs before dispatching to the retained source.

      Parameters:
      x - design-space x coordinate
      y - design-space y coordinate
      Returns:
      topmost fragment containing the point
    • isEmpty

      public boolean isEmpty()