Package com.itextpdf.layout.renderer
Class RtlFlexItemMainDirector
- java.lang.Object
-
- com.itextpdf.layout.renderer.RtlFlexItemMainDirector
-
- All Implemented Interfaces:
IFlexItemMainDirector
class RtlFlexItemMainDirector extends java.lang.Object implements IFlexItemMainDirector
This class is responsible for right to left placement of flex items.
-
-
Constructor Summary
Constructors Constructor Description RtlFlexItemMainDirector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<IRenderer>
applyDirection(java.util.List<java.util.List<FlexItemInfo>> lines)
Apply the direction for placement the items in flex container.<T> void
applyDirectionForLine(java.util.List<T> renderers)
Apply the direction for placement the items in flex line.void
applyJustifyContent(java.util.List<FlexUtil.FlexItemCalculationInfo> line, JustifyContent justifyContent, float freeSpace)
Apply alignment on main flex direction.
-
-
-
Method Detail
-
applyDirection
public java.util.List<IRenderer> applyDirection(java.util.List<java.util.List<FlexItemInfo>> lines)
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
public <T> void applyDirectionForLine(java.util.List<T> renderers)
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(java.util.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.
-
-