Class AutoRepeatValue
- java.lang.Object
-
- com.itextpdf.layout.properties.grid.TemplateValue
-
- com.itextpdf.layout.properties.grid.AutoRepeatValue
-
public class AutoRepeatValue extends TemplateValue
This class represents an auto-repeat template value. This value is preprocessed before grid sizing algorithm so its only exists at template level.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.itextpdf.layout.properties.grid.TemplateValue
TemplateValue.ValueType
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
autoFit
private java.util.List<GridValue>
values
-
Fields inherited from class com.itextpdf.layout.properties.grid.TemplateValue
type
-
-
Constructor Summary
Constructors Constructor Description AutoRepeatValue(boolean autoFit, java.util.List<GridValue> values)
Create a new auto-repeat value
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<GridValue>
getValues()
Get template values which should be repeated.boolean
isAutoFit()
Determines whether to shrink flatten template values to match the grid size.-
Methods inherited from class com.itextpdf.layout.properties.grid.TemplateValue
getType
-
-
-
-
Field Detail
-
values
private final java.util.List<GridValue> values
-
autoFit
private final boolean autoFit
-
-
Constructor Detail
-
AutoRepeatValue
public AutoRepeatValue(boolean autoFit, java.util.List<GridValue> values)
Create a new auto-repeat value- Parameters:
autoFit
- determines whether to shrink flatten template values to match the grid sizevalues
- template values to repeat
-
-
Method Detail
-
getValues
public java.util.List<GridValue> getValues()
Get template values which should be repeated.- Returns:
- template values list
-
isAutoFit
public boolean isAutoFit()
Determines whether to shrink flatten template values to match the grid size.- Returns:
true
if to shrink,false
otherwise
-
-