Package org.xhtmlrenderer.layout
Class FloatManager
java.lang.Object
org.xhtmlrenderer.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 TypeMethodDescriptionvoid
void
clear
(CssContext cssCtx, BlockFormattingContext bfc, Box box) void
floatBox
(LayoutContext c, Layer layer, BlockFormattingContext bfc, BlockBox box) int
getClearDelta
(CssContext cssCtx, int bfcRelativeY) int
getLeftFloatDistance
(CssContext cssCtx, BlockFormattingContext bfc, LineBox line, int containingBlockContentWidth) int
getRightFloatDistance
(CssContext cssCtx, BlockFormattingContext bfc, LineBox line, int containingBlockContentWidth) void
void
removeFloat
(BlockBox floater) void
-
Constructor Details
-
FloatManager
public FloatManager()
-
-
Method Details
-
floatBox
-
clear
-
getClearDelta
-
removeFloat
-
calcFloatLocations
public void calcFloatLocations() -
getLeftFloatDistance
public int getLeftFloatDistance(CssContext cssCtx, BlockFormattingContext bfc, LineBox line, int containingBlockContentWidth) -
getRightFloatDistance
public int getRightFloatDistance(CssContext cssCtx, BlockFormattingContext bfc, LineBox line, int containingBlockContentWidth) -
setMaster
-
getMaster
-
getOffset
-
performFloatOperation
-