Class RtlFlexItemMainDirector
java.lang.Object
com.itextpdf.layout.renderer.RtlFlexItemMainDirector
- All Implemented Interfaces:
IFlexItemMainDirector
This class is responsible for right to left 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> voidapplyDirectionForLine(List<T> renderers) Apply the direction for placement the items in flex line.voidapplyJustifyContent(List<FlexUtil.FlexItemCalculationInfo> line, JustifyContent justifyContent, float freeSpace) Apply alignment on main flex direction.
-
Constructor Details
-
RtlFlexItemMainDirector
RtlFlexItemMainDirector()
-
-
Method Details
-
applyDirection
Apply the direction for placement the items in flex container.- Specified by:
applyDirectionin interfaceIFlexItemMainDirector- Parameters:
lines- flex lines calculated byFlexUtil.- Returns:
- All child renderers in updated order.
-
applyDirectionForLine
Apply the direction for placement the items in flex line.- Specified by:
applyDirectionForLinein 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:
applyJustifyContentin 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.
-