Package com.itextpdf.layout.renderer
Interface IFlexItemMainDirector
-
- All Known Implementing Classes:
BottomToTopFlexItemMainDirector,FlexColumnItemMainDirector,LtrFlexItemMainDirector,RtlFlexItemMainDirector,TopToBottomFlexItemMainDirector
interface IFlexItemMainDirectorBase interface to customize placing flex items on main flex direction.
-
-
Method Summary
All Methods Instance Methods Abstract 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> voidapplyDirectionForLine(java.util.List<T> renderers)Apply the direction for placement the items in flex line.voidapplyJustifyContent(java.util.List<FlexUtil.FlexItemCalculationInfo> line, JustifyContent justifyContent, float freeSpace)Apply alignment on main flex direction.
-
-
-
Method Detail
-
applyDirection
java.util.List<IRenderer> applyDirection(java.util.List<java.util.List<FlexItemInfo>> lines)
Apply the direction for placement the items in flex container.- Parameters:
lines- flex lines calculated byFlexUtil.- Returns:
- All child renderers in updated order.
-
applyDirectionForLine
<T> void applyDirectionForLine(java.util.List<T> renderers)
Apply the direction for placement the items in flex line.- Parameters:
renderers- list of renderers orFlexItemInfo.
-
applyJustifyContent
void applyJustifyContent(java.util.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.
-
-