Package com.itextpdf.layout.renderer
Class LtrFlexItemMainDirector
java.lang.Object
com.itextpdf.layout.renderer.LtrFlexItemMainDirector
- All Implemented Interfaces:
IFlexItemMainDirector
This class is responsible for left to right placement of flex items.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplyDirection
(List<List<FlexItemInfo>> lines) Apply the direction for placement the items in flex container.<T> void
applyDirectionForLine
(List<T> renderers) Apply the direction for placement the items in flex line.void
applyJustifyContent
(List<FlexUtil.FlexItemCalculationInfo> line, JustifyContent justifyContent, float freeSpace) Apply alignment on main flex direction.
-
Constructor Details
-
LtrFlexItemMainDirector
LtrFlexItemMainDirector()
-
-
Method Details
-
applyDirection
Apply the direction for placement the items in flex container.- Specified by:
applyDirection
in interfaceIFlexItemMainDirector
- Parameters:
lines
- flex lines calculated byFlexUtil
.- Returns:
- All child renderers in updated order.
-
applyDirectionForLine
Description copied from interface:IFlexItemMainDirector
Apply the direction for placement the items in flex line.- Specified by:
applyDirectionForLine
in interfaceIFlexItemMainDirector
- Parameters:
renderers
- list of renderers orFlexItemInfo
.
-
applyJustifyContent
public void applyJustifyContent(List<FlexUtil.FlexItemCalculationInfo> line, JustifyContent justifyContent, float freeSpace) Apply alignment on main flex direction.- Specified by:
applyJustifyContent
in interfaceIFlexItemMainDirector
- 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.
-