Interface IFlexItemMainDirector

All Known Implementing Classes:
BottomToTopFlexItemMainDirector, FlexColumnItemMainDirector, LtrFlexItemMainDirector, RtlFlexItemMainDirector, TopToBottomFlexItemMainDirector

interface IFlexItemMainDirector
Base interface to customize placing flex items on main flex direction.
  • Method Details

    • applyDirection

      List<IRenderer> applyDirection(List<List<FlexItemInfo>> lines)
      Apply the direction for placement the items in flex container.
      Parameters:
      lines - flex lines calculated by FlexUtil.
      Returns:
      All child renderers in updated order.
    • applyDirectionForLine

      <T> void applyDirectionForLine(List<T> renderers)
      Apply the direction for placement the items in flex line.
      Parameters:
      renderers - list of renderers or FlexItemInfo.
    • applyJustifyContent

      void applyJustifyContent(List<FlexUtil.FlexItemCalculationInfo> line, JustifyContent justifyContent, float freeSpace)
      Apply alignment on main flex direction.
      Parameters:
      line - flex line of items to apply alignment to.
      justifyContent - alignment to apply.
      freeSpace - precalculated free space to distribute between flex items in a line.