Package com.itextpdf.layout.renderer
Class BlockFormattingContextUtil
- java.lang.Object
-
- com.itextpdf.layout.renderer.BlockFormattingContextUtil
-
public class BlockFormattingContextUtil extends java.lang.ObjectThis class helps to identify whether we are dealing with a renderer that creates a new "Block formatting context" in terms of CSS. Such renderers adhere to specific rules of floating elements and margins collapse handling.
-
-
Constructor Summary
Constructors Constructor Description BlockFormattingContextUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static booleanisAbsolutePosition(IRenderer renderer)private static booleanisCaption(IRenderer renderer)private static booleanisFixedPosition(IRenderer renderer)private static booleanisInlineBlock(IRenderer renderer)static booleanisRendererCreateBfc(IRenderer renderer)Defines whether a renderer creates a new "Block formatting context" in terms of CSS.
-
-
-
Method Detail
-
isRendererCreateBfc
public static boolean isRendererCreateBfc(IRenderer renderer)
Defines whether a renderer creates a new "Block formatting context" in terms of CSS.See
BlockFormattingContextUtilclass description for more info.- Parameters:
renderer- anIRendererto be checked.- Returns:
- true if given renderer creates a new "Block formatting context" in terms of CSS, false otherwise.
-
isInlineBlock
private static boolean isInlineBlock(IRenderer renderer)
-
isAbsolutePosition
private static boolean isAbsolutePosition(IRenderer renderer)
-
isFixedPosition
private static boolean isFixedPosition(IRenderer renderer)
-
isCaption
private static boolean isCaption(IRenderer renderer)
-
-