Class InlineVerticalAlignmentHelper
java.lang.Object
com.itextpdf.layout.renderer.InlineVerticalAlignmentHelper
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final floatprivate static final floatprivate static final float -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidadjustBBox(LineRenderer lineRenderer, float maxHeight, float maxTop, float minBottom) static voidadjustChildrenYLineHtmlMode(LineRenderer lineRenderer) private static floatcalculateOffset(IRenderer renderer, Rectangle cBBox, InlineVerticalAlignment alignment, float baseline, float textTop, float textBottom, float leading, float xHeight, Rectangle pBBox) private static RectanglegetAdjustedArea(IRenderer renderer) private static floatgetChildBaseline(IRenderer renderer, float leading) private static booleanprivate static voidprocessRenderers(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
-