org.apache.fop.area
Class BodyRegion
- Cloneable, Serializable
This class is a container for the areas that may be generated by
an fo:region-body. It extends the RegionReference that is used
directly by the other region classes.
See fo:region-body definition in the XSL Rec for more information.
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 |
BodyRegion(int regionClass, String regionName, RegionViewport parent, int columnCount, int columnGap) - Constructor which can read traits directly
from an fo:region-body formatting object.
|
BodyRegion(RegionBody rb, RegionViewport parent) - Constructor which can read traits directly
from an fo:region-body formatting object.
|
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 |
BodyRegion
public BodyRegion(int regionClass,
String regionName,
RegionViewport parent,
int columnCount,
int columnGap)
Constructor which can read traits directly
from an fo:region-body formatting object.
regionClass
- the region class (as returned by Region.getNameId())regionName
- the name of the region (as returned by Region.getRegionName())parent
- the parent region viewportcolumnCount
- the number of columnscolumnGap
- the gap between columns
BodyRegion
public BodyRegion(RegionBody rb,
RegionViewport parent)
Constructor which can read traits directly
from an fo:region-body formatting object.
rb
- the region-body FO nodeparent
- the parent region viewport
clone
public Object clone()
Clone this object.
- clone in interface RegionReference
- a shallow copy of this object
getBeforeFloat
public BeforeFloat getBeforeFloat()
Get the before float area.
getColumnCount
public int getColumnCount()
Get the number of columns when not spanning
getColumnGap
public int getColumnGap()
getFootnote
public Footnote getFootnote()
Get the footnote area.
getMainReference
public MainReference getMainReference()
Get the main reference area.
getRemainingBPD
public int getRemainingBPD()
- the available BPD in the main reference area after the previous span reference
areas are subtracted.
isEmpty
public boolean isEmpty()
indicates whether the main reference area has any child areas added to it
- whether the main reference area has any child areas added to it
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.