Flying Saucer Project Release ${app.version}

org.xhtmlrenderer.layout
Class FloatManager

java.lang.Object
  extended by 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
static interface FloatManager.FloatOperation
           
 
Constructor Summary
FloatManager()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FloatManager

public FloatManager()
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)

Flying Saucer Project Release ${app.version}

Flying Saucer Project Home