Package com.itextpdf.layout.renderer
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 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.
-
Method Details
-
applyDirection
Apply the direction for placement the items in flex container.- Parameters:
lines
- flex lines calculated byFlexUtil
.- Returns:
- All child renderers in updated order.
-
applyDirectionForLine
Apply the direction for placement the items in flex line.- Parameters:
renderers
- list of renderers orFlexItemInfo
.
-
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.
-