Package org.xhtmlrenderer.layout
Class FloatManager
- java.lang.Object
-
- org.xhtmlrenderer.layout.FloatManager
-
public class FloatManager extends Object
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 Modifier and Type Class Description static interfaceFloatManager.FloatOperation
-
Constructor Summary
Constructors Constructor Description FloatManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcalcFloatLocations()voidclear(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)BoxgetMaster()intgetNextLineBoxDelta(CssContext cssCtx, BlockFormattingContext bfc, LineBox line, int containingBlockContentWidth)PointgetOffset(BlockBox floater)intgetRightFloatDistance(CssContext cssCtx, BlockFormattingContext bfc, LineBox line, int containingBlockContentWidth)voidperformFloatOperation(FloatManager.FloatOperation op)voidremoveFloat(BlockBox floater)voidsetMaster(Box owner)
-
-
-
Method Detail
-
floatBox
public void floatBox(LayoutContext c, Layer layer, BlockFormattingContext bfc, BlockBox box)
-
clear
public void clear(CssContext cssCtx, BlockFormattingContext bfc, Box box)
-
getClearDelta
public int getClearDelta(CssContext cssCtx, int bfcRelativeY)
-
removeFloat
public void removeFloat(BlockBox floater)
-
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)
-
setMaster
public void setMaster(Box owner)
-
getMaster
public Box getMaster()
-
performFloatOperation
public void performFloatOperation(FloatManager.FloatOperation op)
-
-