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 LengthValue
length
-
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 providedLengthValue
instance.FitContentValue(UnitValue length)
Create fit content function value based on providedUnitValue
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LengthValue
getLength()
Get underlyingLengthValue
which represents max size on a grid for this value.float
getMaxSizeForSpace(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 providedLengthValue
instance.- Parameters:
length
- max size value
-
-
Method Detail
-
getLength
public LengthValue getLength()
Get underlyingLengthValue
which represents max size on a grid for this value.- Returns:
- underlying
LengthValue
value
-
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
-
-