Package com.itextpdf.layout.renderer
Class GridTemplateResolver
java.lang.Object
com.itextpdf.layout.renderer.GridTemplateResolver
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate class
private static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private final float
private GridTemplateResolver.Result
private final float
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) int
Determines how many fixed values (all template values except auto-fit/fill repeat) in the result.(package private) boolean
Determines if auto-fit repeat was encountered during processing.private float
processValue
(TemplateValue value) private void
reset()
resolveTemplate
(List<TemplateValue> template) Resolves template values to grid values by flatting repeats.shrinkTemplatesToFitSize
(int sizeToFit) Shrinks template list to fit the given size by reducing number of auto-fit/fill repetitions.
-
Field Details
-
space
private final float space -
gap
private final float gap -
containsIntrinsicOrFlexible
private boolean containsIntrinsicOrFlexible -
autoRepeatResolver
-
result
-
-
Constructor Details
-
GridTemplateResolver
GridTemplateResolver(float space, float gap)
-
-
Method Details
-
isCollapseNullLines
boolean isCollapseNullLines()Determines if auto-fit repeat was encountered during processing.- Returns:
- true if auto-fit repeat was encountered, false otherwise
-
getFixedValuesCount
int getFixedValuesCount()Determines how many fixed values (all template values except auto-fit/fill repeat) in the result.- Returns:
- number of fixed values in template list
-
shrinkTemplatesToFitSize
Shrinks template list to fit the given size by reducing number of auto-fit/fill repetitions.- Parameters:
sizeToFit
- size to fit template list
-
resolveTemplate
Resolves template values to grid values by flatting repeats.- Parameters:
template
- template values list- Returns:
- grid values list
-
processValue
-
reset
private void reset()
-