Package hec.map.annotations.layout
Interface Layout
- All Known Implementing Classes:
FlowLayout
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 TypeMethodDescriptionvoidJustify bounds of widget children based on a widget client area.voidResolve bounds of widget children based in their preferred locations and bounds.booleanrequiresJustification(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
-