org.apache.fop.area

Class BeforeFloat

Implemented Interfaces:
Serializable

public class BeforeFloat
extends BlockParent

The before-float-reference-area optionally generated by an fo:region-body. It has an optional separator and before float block children. See fo:region-body definition in the XSL Rec for more information.

Field Summary

Fields inherited from class org.apache.fop.area.BlockParent

children, xOffset, yOffset

Fields inherited from class org.apache.fop.area.Area

BT, CLASS_ABSOLUTE, CLASS_BEFORE_FLOAT, CLASS_FIXED, CLASS_FOOTNOTE, CLASS_MAX, CLASS_NORMAL, CLASS_SIDE_FLOAT, LR, ORIENT_0, ORIENT_180, ORIENT_270, ORIENT_90, RL, TB, bpd, ipd, log, props

Fields inherited from class org.apache.fop.area.AreaTreeObject

foreignAttributes

Method Summary

int
getBPD()
Get the height of this before float.
Block
getSeparator()
Get the separator area for this before float.
boolean
isEmpty()
void
setSeparator(Block sep)
Set the separator area for this before float.

Methods inherited from class org.apache.fop.area.BlockParent

addBlock, addChildArea, getChildAreas, getXOffset, getYOffset, isEmpty, setXOffset, setYOffset

Methods inherited from class org.apache.fop.area.Area

addChildArea, addTrait, addTrait, getAllocBPD, getAllocIPD, getAreaClass, getBPD, getBooleanTrait, getBorderAndPaddingWidthAfter, getBorderAndPaddingWidthBefore, getBorderAndPaddingWidthEnd, getBorderAndPaddingWidthStart, getIPD, getSpaceAfter, getSpaceBefore, getSpaceEnd, getSpaceStart, getTrait, getTraitAsInteger, getTraits, hasTrait, hasTraits, setAreaClass, setBPD, setIPD, toString

Methods inherited from class org.apache.fop.area.AreaTreeObject

getForeignAttributeValue, getForeignAttributes, setForeignAttribute, setForeignAttributes

Method Details

getBPD

public int getBPD()
Get the height of this before float. It gets the height of the children and if there is a separator its height is also added.
Overrides:
getBPD in interface Area
Returns:
the height of the before float including separator

getSeparator

public Block getSeparator()
Get the separator area for this before float.
Returns:
the before float separator area

isEmpty

public boolean isEmpty()
Overrides:
isEmpty in interface BlockParent

setSeparator

public void setSeparator(Block sep)
Set the separator area for this before float.
Parameters:
sep - the before float separator area

Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.