src/main/java/com/spinyowl/legui/system/layout/DefaultLayoutManager.java
public void layout(Component component, Frame frame, Context context) {
    if (component != null && component.isVisible() && Utilites.visibleInParents(component)) {
      Layout layout = layoutMap.get(component.getStyle().getDisplay());
      if (layout != null) {
        layout.layout(component, frame, context);
      }

      if (!component.isEmpty()) {
        List<Component> childComponents = component.getChildComponents();
        for (Component child : childComponents) {
          layout(child, frame, context);
        }
      }
    }
  }
/**
   * Used to layout component and all of his child components.
   *
   * @param component component to lay out.
   * @param frame     component frame (for event generation if needed).
   * @param context   context (used for event generation).
   */
Used to layout component and all of his child components.
@param component component to lay out.
@param frame     component frame (for event generation if needed).
@param context   context (used for event generation).
Used to layout component and all of his child components . @param component component to lay out . @param frame component frame ( for event generation if needed ) . @param context context ( used for event generation ) .
public void layout(Component component, Frame frame, Context context) {
    if (component != null && component.isVisible() && Utilites.visibleInParents(component)) {
      Layout layout = layoutMap.get(component.getStyle().getDisplay());
      if (layout != null) {
        layout.layout(component, frame, context);
      }
      if (!component.isEmpty()) {
        List<Component> childComponents = component.getChildComponents();
        for (Component child : childComponents) {
          layout(child, frame, context);
        }
      }
    }
  }
public void layout ( Component component , Frame frame , Context context ) { if ( component != null && component . isVisible ( ) && Utilites . visibleInParents ( component ) ) { Layout layout = layoutMap . get ( component . getStyle ( ) . getDisplay ( ) ) ; if ( layout != null ) { layout . layout ( component , frame , context ) ; } if ( ! component . isEmpty ( ) ) { List < Component > childComponents = component . getChildComponents ( ) ; for ( Component child : childComponents ) { layout ( child , frame , context ) ; } } } }
Used to layout component and all of his child components.
Used to layout component and all of his child components .