Package com.openhtmltopdf.layout
Class BlockFormattingContext
java.lang.Object
com.openhtmltopdf.layout.BlockFormattingContext
This class represents a block formatting context as defined in the CSS spec.
Its main purpose is to provide BFC relative coordinates for a
FloatManager
.
This coordinate space is used when positioning floats and calculating the
amount of space floated boxes take up at a given y position.
NOTE: The translate(int, int)
method must be called when a
block box in the normal flow is moved (i.e. its static position changes)-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear
(LayoutContext c, Box current) void
floatBox
(LayoutContext c, BlockBox floated) int
getFloatDistance
(CssContext cssCtx, LineBox line, int containingBlockWidth) int
getLeftFloatDistance
(CssContext cssCtx, LineBox line, int containingBlockWidth) int
getNextLineBoxDelta
(CssContext cssCtx, LineBox line, int containingBlockWidth) int
getRightFloatDistance
(CssContext cssCtx, LineBox line, int containingBlockWidth) toString()
void
translate
(int x, int y)
-
Field Details
-
_x
private int _x -
_y
private int _y -
_persistentBFC
-
-
Constructor Details
-
BlockFormattingContext
-
-
Method Details