Interface EditorLayout

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface EditorLayout
Sizes and places the open editors.
  • Method Details

    • place

      List<EditorView> place(GuiFrame frame, List<EditorView> views, Rect area)
      Measures the editors it shows, with EditorView.measure(GuiFrame, double, double, boolean), and places them.
      Parameters:
      views - The open editors' views, oldest first
      area - Where editors go: the whole screen, or the view's GuiView.editorArea()
      Returns:
      The views to show, in drawing order. The others are hidden and take no input until a later frame shows them.
    • row

      static EditorLayout row(double gap)
      Side by side in one row centered in the area, oldest left, each at its own size and centered vertically.
      Parameters:
      gap - Space between editors
    • row

      static EditorLayout row(DoubleSupplier gap)
    • stack

      static EditorLayout stack()
      The newest editor fills the area; the ones it was opened from wait hidden under it and come back as it closes.