Package com.itextpdf.layout.renderer
Class BlockFormattingContextUtil
java.lang.Object
com.itextpdf.layout.renderer.BlockFormattingContextUtil
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.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static boolean
isAbsolutePosition
(IRenderer renderer) private static boolean
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.
-
Constructor Details
-
BlockFormattingContextUtil
public BlockFormattingContextUtil()
-
-
Method Details
-
isRendererCreateBfc
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
-
isAbsolutePosition
-
isFixedPosition
-
isCaption
-