Class GridTemplateResolver
java.lang.Object
com.itextpdf.layout.renderer.GridTemplateResolver
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classprivate static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate final floatprivate GridTemplateResolver.Resultprivate final float -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) intDetermines how many fixed values (all template values except auto-fit/fill repeat) in the result.(package private) booleanDetermines if auto-fit repeat was encountered during processing.private floatprocessValue(TemplateValue value) private voidreset()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
-
resolveTemplate
Resolves template values to grid values by flatting repeats.- Parameters:
template- template values list- Returns:
- grid values list
-
processValue
-
reset
private void reset()
-