Interface Layout
public interface Layout
This class is responsible for layout and justification of children widgets of a widget where the layout is assigned.
Built-in layouts could be created by LayoutFactory class.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Justify bounds of widget children based on a widget client area.void
Resolve bounds of widget children based in their preferred locations and bounds.boolean
requiresJustification
(Widget widget) Resolve whether a widget requires justification after whole scene layout.
-
Method Details
-
layout
Resolve bounds of widget children based in their preferred locations and bounds.- Parameters:
widget
- the widget
-
requiresJustification
Resolve whether a widget requires justification after whole scene layout.- Parameters:
widget
- the widget- Returns:
- true if requires justification
-
justify
Justify bounds of widget children based on a widget client area.- Parameters:
widget
- the widget
-