Top Description Constructors Methods
com.openhtmltopdf.layout

public Class LayoutUtil

extends Object
Class Inheritance
Imports
java.util.List, com.openhtmltopdf.css.constants.CSSName, com.openhtmltopdf.render.BlockBox, .LineBox, .MarkerData

Contains utility methods to layout floated and absolute content. XXX Could/should be folded into BlockBox

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static void
public static FloatLayoutResult
layoutFloated(final LayoutContext c, LineBox currentLine, BlockBox block, int avail, List<FloatLayoutResult> pendingFloats)

private static void
positionFloatOnPage(final LayoutContext c, LineBox currentLine, BlockBox block, boolean movedVertically)

private static void
resetAndFloatBlock(final LayoutContext c, LineBox currentLine, BlockBox block)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

LayoutUtilback to summary
public LayoutUtil()

Method Detail

layoutAbsoluteback to summary
public static void layoutAbsolute(LayoutContext c, LineBox currentLine, BlockBox box)
layoutFloatedback to summary
public static FloatLayoutResult layoutFloated(final LayoutContext c, LineBox currentLine, BlockBox block, int avail, List<FloatLayoutResult> pendingFloats)
positionFloatOnPageback to summary
private static void positionFloatOnPage(final LayoutContext c, LineBox currentLine, BlockBox block, boolean movedVertically)
resetAndFloatBlockback to summary
private static void resetAndFloatBlock(final LayoutContext c, LineBox currentLine, BlockBox block)