Class InlineBoxing
java.lang.Object
com.openhtmltopdf.layout.InlineBoxing
This class is responsible for flowing inline content into lines. Block
content which participates in an inline formatting context is also handled
here as well as floating and absolutely positioned content.
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<TextDecoration> calculateTextDecorations(Box box, int baseline, FSFontMetrics fm) static StrutMetricscreateDefaultStrutMetrics(LayoutContext c, Box container) static voidlayoutContent(LayoutContext c, BlockBox box, int initialY, int breakAtLine) static intpositionHorizontally(CssContext c, Box current, int start) static intpositionHorizontallyRTL(CssContext c, Box current, int start, int width) Attempts to layout inline boxes from right to left.
-
Method Details
-
layoutContent
-
positionHorizontallyRTL
Attempts to layout inline boxes from right to left.- Parameters:
current- should be the line box.start- should be the right edge of the line- Returns:
- width of line.
-
positionHorizontally
-
createDefaultStrutMetrics
-
calculateTextDecorations
public static List<TextDecoration> calculateTextDecorations(Box box, int baseline, FSFontMetrics fm)
-