Package com.itextpdf.layout.renderer
Class BlockFormattingContextUtil
- java.lang.Object
-
- com.itextpdf.layout.renderer.BlockFormattingContextUtil
-
public class BlockFormattingContextUtil extends java.lang.Object
This 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 boolean
isAbsolutePosition(IRenderer renderer)
private static boolean
isCaption(IRenderer renderer)
private static boolean
isFixedPosition(IRenderer renderer)
private static boolean
isInlineBlock(IRenderer renderer)
static boolean
isRendererCreateBfc(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
BlockFormattingContextUtil
class description for more info.- Parameters:
renderer
- anIRenderer
to 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)
-
-