Class MinMaxWidthUtils

java.lang.Object
com.itextpdf.layout.minmaxwidth.MinMaxWidthUtils

public final class MinMaxWidthUtils extends Object
  • 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

      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 for
      areaMaxWidth - 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