org.xhtmlrenderer.layout
Class FloatManager

java.lang.Object
  extended by 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
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()
           
 int getNextLineBoxDelta(CssContext cssCtx, BlockFormattingContext bfc, LineBox line, int containingBlockContentWidth)
           
 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
clone, equals, finalize, 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()

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

getOffset

public Point getOffset(BlockBox floater)

performFloatOperation

public void performFloatOperation(FloatManager.FloatOperation op)


Copyright © 2013. All Rights Reserved.