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.
Sizes and places the open editors.
-
Method Summary
Modifier and TypeMethodDescriptionplace(GuiFrame frame, List<EditorView> views, Rect area) Measures the editors it shows, withEditorView.measure(GuiFrame, double, double, boolean), and places them.static EditorLayoutrow(double gap) Side by side in one row centered in the area, oldest left, each at its own size and centered vertically.static EditorLayoutrow(DoubleSupplier gap) static EditorLayoutstack()The newest editor fills the area; the ones it was opened from wait hidden under it and come back as it closes.
-
Method Details
-
place
Measures the editors it shows, withEditorView.measure(GuiFrame, double, double, boolean), and places them.- Parameters:
views- The open editors' views, oldest firstarea- Where editors go: the whole screen, or the view'sGuiView.editorArea()- Returns:
- The views to show, in drawing order. The others are hidden and take no input until a later frame shows them.
-
row
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
-
stack
The newest editor fills the area; the ones it was opened from wait hidden under it and come back as it closes.
-