Package com.itextpdf.layout.minmaxwidth
Class MinMaxWidthUtils
java.lang.Object
com.itextpdf.layout.minmaxwidth.MinMaxWidthUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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
static float
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)
-
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:
-
MinMaxWidth
instance
-
countDefaultMinMaxWidth
Default implementation for min max width calculation.- Parameters:
-
renderer
- renderer to calculate min max width for -
areaMaxWidth
- max available area for layout - Returns:
-
MinMaxWidth
instance
-
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
-