Package org.xhtmlrenderer.layout
Class FloatManager
- java.lang.Object
-
- org.xhtmlrenderer.layout.FloatManager
-
public class FloatManager extends java.lang.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 interface
FloatManager.FloatOperation
-
Constructor Summary
Constructors Constructor Description FloatManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
calcFloatLocations()
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)
Box
getMaster()
java.awt.Point
getOffset(BlockBox floater)
int
getRightFloatDistance(CssContext cssCtx, BlockFormattingContext bfc, LineBox line, int containingBlockContentWidth)
void
performFloatOperation(FloatManager.FloatOperation op)
void
removeFloat(BlockBox floater)
void
setMaster(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()
-
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()
-
getOffset
public java.awt.Point getOffset(BlockBox floater)
-
performFloatOperation
public void performFloatOperation(FloatManager.FloatOperation op)
-
-