Package com.openhtmltopdf.layout
Class LayoutUtil
- java.lang.Object
-
- com.openhtmltopdf.layout.LayoutUtil
-
public class LayoutUtil extends java.lang.Object
Contains utility methods to layout floated and absolute content. XXX Could/should be folded into BlockBox
-
-
Constructor Summary
Constructors Constructor Description LayoutUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
layoutAbsolute(LayoutContext c, LineBox currentLine, BlockBox box)
static FloatLayoutResult
layoutFloated(LayoutContext c, LineBox currentLine, BlockBox block, int avail, java.util.List<FloatLayoutResult> pendingFloats)
private static void
positionFloatOnPage(LayoutContext c, LineBox currentLine, BlockBox block, boolean movedVertically)
private static void
resetAndFloatBlock(LayoutContext c, LineBox currentLine, BlockBox block)
-
-
-
Method Detail
-
layoutAbsolute
public static void layoutAbsolute(LayoutContext c, LineBox currentLine, BlockBox box)
-
layoutFloated
public static FloatLayoutResult layoutFloated(LayoutContext c, LineBox currentLine, BlockBox block, int avail, java.util.List<FloatLayoutResult> pendingFloats)
-
positionFloatOnPage
private static void positionFloatOnPage(LayoutContext c, LineBox currentLine, BlockBox block, boolean movedVertically)
-
resetAndFloatBlock
private static void resetAndFloatBlock(LayoutContext c, LineBox currentLine, BlockBox block)
-
-