Package com.itextpdf.layout.minmaxwidth
Class MinMaxWidthUtils
- java.lang.Object
-
- com.itextpdf.layout.minmaxwidth.MinMaxWidthUtils
-
public final class MinMaxWidthUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description MinMaxWidthUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MinMaxWidth
countDefaultMinMaxWidth(IRenderer renderer)
Default implementation for min max width calculation.static MinMaxWidth
countDefaultMinMaxWidth(IRenderer renderer, float areaMaxWidth)
Default implementation for min max width calculation.static float
getBorderWidth(IPropertyContainer element)
Get sum of left and right borders for the element.static float
getEps()
static float
getInfHeight()
static float
getInfWidth()
static float
getMarginsWidth(IPropertyContainer element)
Get sum of left and right margins for the element.static float
getPaddingWidth(IPropertyContainer element)
Get sum of left and right paddings for the element.static boolean
isEqual(double x, double y)
-
-
-
Field Detail
-
eps
private static final float eps
- See Also:
- Constant Field Values
-
max
private static final float max
- See Also:
- Constant Field Values
-
-
Method Detail
-
getEps
public static float getEps()
-
getInfWidth
public static float getInfWidth()
-
getInfHeight
public static float getInfHeight()
-
isEqual
public static boolean isEqual(double x, double y)
-
countDefaultMinMaxWidth
public static MinMaxWidth countDefaultMinMaxWidth(IRenderer renderer)
Default implementation for min max width calculation.- Parameters:
renderer
- renderer to calculate min max width for- Returns:
MinMaxWidth
instance
-
countDefaultMinMaxWidth
public static MinMaxWidth countDefaultMinMaxWidth(IRenderer renderer, float areaMaxWidth)
Default implementation for min max width calculation.- Parameters:
renderer
- renderer to calculate min max width forareaMaxWidth
- max available area for layout- Returns:
MinMaxWidth
instance
-
getBorderWidth
public static float getBorderWidth(IPropertyContainer element)
Get sum of left and right borders for the element.- Parameters:
element
- element to calculate borders width for- Returns:
- sum of left and right borders as
float
-
getMarginsWidth
public static float getMarginsWidth(IPropertyContainer element)
Get sum of left and right margins for the element.- Parameters:
element
- element to calculate margins width for- Returns:
- sum of left and right margins as
float
-
getPaddingWidth
public static float getPaddingWidth(IPropertyContainer element)
Get sum of left and right paddings for the element.- Parameters:
element
- element to calculate paddings width for- Returns:
- sum of left and right paddings as
float
-
-