Package com.itextpdf.layout.minmaxwidth
Class MinMaxWidthUtils
java.lang.Object
com.itextpdf.layout.minmaxwidth.MinMaxWidthUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MinMaxWidthcountDefaultMinMaxWidth(IRenderer renderer) Default implementation for min max width calculation.static MinMaxWidthcountDefaultMinMaxWidth(IRenderer renderer, float areaMaxWidth) Default implementation for min max width calculation.static floatgetBorderWidth(IPropertyContainer element) Get sum of left and right borders for the element.static floatgetEps()static floatstatic floatstatic floatgetMarginsWidth(IPropertyContainer element) Get sum of left and right margins for the element.static floatgetPaddingWidth(IPropertyContainer element) Get sum of left and right paddings for the element.static booleanisEqual(double x, double y)
-
Constructor Details
-
MinMaxWidthUtils
public MinMaxWidthUtils()
-
-
Method Details
-
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
Default implementation for min max width calculation.- Parameters:
-
renderer- renderer to calculate min max width for - Returns:
-
MinMaxWidthinstance
-
countDefaultMinMaxWidth
Default implementation for min max width calculation.- Parameters:
-
renderer- renderer to calculate min max width for -
areaMaxWidth- max available area for layout - Returns:
-
MinMaxWidthinstance
-
getBorderWidth
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
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
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
-