Class FitContentValue
- java.lang.Object
-
- com.itextpdf.layout.properties.grid.TemplateValue
-
- com.itextpdf.layout.properties.grid.GridValue
-
- com.itextpdf.layout.properties.grid.FunctionValue
-
- com.itextpdf.layout.properties.grid.FitContentValue
-
public class FitContentValue extends FunctionValue
Represents fit content function template value.
-
-
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 LengthValuelength-
Fields inherited from class com.itextpdf.layout.properties.grid.TemplateValue
type
-
-
Constructor Summary
Constructors Constructor Description FitContentValue(LengthValue length)Create fit content function value based on providedLengthValueinstance.FitContentValue(UnitValue length)Create fit content function value based on providedUnitValueinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LengthValuegetLength()Get underlyingLengthValuewhich represents max size on a grid for this value.floatgetMaxSizeForSpace(float space)Gets the maximum size which the value can take on passed space.-
Methods inherited from class com.itextpdf.layout.properties.grid.TemplateValue
getType
-
-
-
-
Field Detail
-
length
private LengthValue length
-
-
Constructor Detail
-
FitContentValue
public FitContentValue(LengthValue length)
Create fit content function value based on providedLengthValueinstance.- Parameters:
length- max size value
-
-
Method Detail
-
getLength
public LengthValue getLength()
Get underlyingLengthValuewhich represents max size on a grid for this value.- Returns:
- underlying
LengthValuevalue
-
getMaxSizeForSpace
public float getMaxSizeForSpace(float space)
Gets the maximum size which the value can take on passed space.- Parameters:
space- the space for which fit-content size will be calculated- Returns:
- the maximum size of the value on passed space
-
-