Package com.itextpdf.layout.renderer
Class InlineVerticalAlignmentHelper
java.lang.Object
com.itextpdf.layout.renderer.InlineVerticalAlignmentHelper
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final float
private static final float
private static final float
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
adjustBBox
(LineRenderer lineRenderer, float maxHeight, float maxTop, float minBottom) static void
adjustChildrenYLineHtmlMode
(LineRenderer lineRenderer) private static float
calculateOffset
(IRenderer renderer, Rectangle cBBox, InlineVerticalAlignment alignment, float baseline, float textTop, float textBottom, float leading, float xHeight, Rectangle pBBox) private static Rectangle
getAdjustedArea
(IRenderer renderer) private static float
getChildBaseline
(IRenderer renderer, float leading) private static boolean
private static void
processRenderers
(LineRenderer lineRenderer, List<IRenderer> renderers, float actualYLine, Predicate<InlineVerticalAlignment> needProcess, Predicate<InlineVerticalAlignment> needRecalculateSizes)
-
Field Details
-
ADJUSTMENT_THRESHOLD
private static final float ADJUSTMENT_THRESHOLD- See Also:
-
SUPER_OFFSET
private static final float SUPER_OFFSET- See Also:
-
SUB_OFFSET
private static final float SUB_OFFSET- See Also:
-
-
Constructor Details
-
InlineVerticalAlignmentHelper
private InlineVerticalAlignmentHelper()
-
-
Method Details
-
adjustChildrenYLineHtmlMode
-
isBoxOrientedVerticalAlignment
-
processRenderers
private static void processRenderers(LineRenderer lineRenderer, List<IRenderer> renderers, float actualYLine, Predicate<InlineVerticalAlignment> needProcess, Predicate<InlineVerticalAlignment> needRecalculateSizes) -
getAdjustedArea
-
adjustBBox
private static void adjustBBox(LineRenderer lineRenderer, float maxHeight, float maxTop, float minBottom) -
calculateOffset
private static float calculateOffset(IRenderer renderer, Rectangle cBBox, InlineVerticalAlignment alignment, float baseline, float textTop, float textBottom, float leading, float xHeight, Rectangle pBBox) -
getChildBaseline
-