java.lang.Object
org.openpdf.layout.FloatManager
A class that manages all floated boxes in a given block formatting context.
It is responsible for positioning floats and calculating clearance for
non-floated (block) boxes.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclear(CssContext cssCtx, BlockFormattingContext bfc, Box box) voidfloatBox(LayoutContext c, Layer layer, BlockFormattingContext bfc, BlockBox box) intgetClearDelta(CssContext cssCtx, int bfcRelativeY) intgetLeftFloatDistance(CssContext cssCtx, BlockFormattingContext bfc, LineBox line, int containingBlockContentWidth) intgetNextLineBoxDelta(CssContext cssCtx, BlockFormattingContext bfc, LineBox line, int containingBlockContentWidth) intgetRightFloatDistance(CssContext cssCtx, BlockFormattingContext bfc, LineBox line, int containingBlockContentWidth) voidvoidremoveFloat(BlockBox floater)
-
Constructor Details
-
FloatManager
-
-
Method Details
-
floatBox
-
clear
-
getClearDelta
-
removeFloat
-
calcFloatLocations
public void calcFloatLocations() -
getNextLineBoxDelta
public int getNextLineBoxDelta(CssContext cssCtx, BlockFormattingContext bfc, LineBox line, int containingBlockContentWidth) -
getLeftFloatDistance
public int getLeftFloatDistance(CssContext cssCtx, BlockFormattingContext bfc, LineBox line, int containingBlockContentWidth) -
getRightFloatDistance
public int getRightFloatDistance(CssContext cssCtx, BlockFormattingContext bfc, LineBox line, int containingBlockContentWidth) -
getMaster
-
getOffset
-
performFloatOperation
-