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 Type
    Method
    Description
    void
    justify(Widget widget)
    Justify bounds of widget children based on a widget client area.
    void
    layout(Widget widget)
    Resolve bounds of widget children based in their preferred locations and bounds.
    boolean
    Resolve whether a widget requires justification after whole scene layout.
  • Method Details

    • layout

      void layout(Widget widget)
      Resolve bounds of widget children based in their preferred locations and bounds.
      Parameters:
      widget - the widget
    • requiresJustification

      boolean requiresJustification(Widget widget)
      Resolve whether a widget requires justification after whole scene layout.
      Parameters:
      widget - the widget
      Returns:
      true if requires justification
    • justify

      void justify(Widget widget)
      Justify bounds of widget children based on a widget client area.
      Parameters:
      widget - the widget