public class BodyRegion extends RegionReference
regionViewportbidiLevel, bpd, CLASS_ABSOLUTE, CLASS_BEFORE_FLOAT, CLASS_FIXED, CLASS_FOOTNOTE, CLASS_MAX, CLASS_NORMAL, CLASS_SIDE_FLOAT, effectiveIPD, ipd, log, ORIENT_0, ORIENT_180, ORIENT_270, ORIENT_90, traitsextensionAttachments, foreignAttributes| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
BeforeFloat |
getBeforeFloat()
Get the before float area.
|
int |
getColumnCount()
Get the number of columns when not spanning
|
int |
getColumnGap() |
int |
getColumnIPD() |
Footnote |
getFootnote()
Get the footnote area.
|
MainReference |
getMainReference()
Get the main reference area.
|
int |
getRemainingBPD() |
boolean |
isEmpty()
indicates whether the main reference area has any child areas added to it
|
void |
setWritingModeTraits(WritingModeTraitsGetter wmtg)
Sets the writing mode traits for the main reference area of
this body region area.
|
addBlock, addChildArea, getBlocks, getCTM, getRegionClass, getRegionName, getRegionViewport, setCTM, toStringactivateEffectiveIPD, addTrait, getAllocBPD, getAllocIPD, getAreaClass, getBidiLevel, getBorderAndPaddingWidthAfter, getBorderAndPaddingWidthBefore, getBorderAndPaddingWidthEnd, getBorderAndPaddingWidthStart, getBPD, getChangeBarList, getEffectiveAllocIPD, getEffectiveIPD, getIPD, getSpaceAfter, getSpaceBefore, getSpaceEnd, getSpaceStart, getTrait, getTraitAsBoolean, getTraitAsInteger, getTraits, hasTrait, hasTraits, resetBidiLevel, setAreaClass, setBidiLevel, setBPD, setChangeBarList, setIPD, setTraitsaddExtensionAttachment, getExtensionAttachments, getForeignAttributes, getForeignAttributeValue, hasExtensionAttachments, setExtensionAttachments, setForeignAttribute, setForeignAttributespublic BodyRegion(RegionBody rb, RegionViewport parent)
rb - the region-body FO nodeparent - the parent region viewportpublic BodyRegion(int regionClass,
String regionName,
RegionViewport parent,
int columnCount,
int columnGap)
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 columnspublic int getColumnCount()
public int getColumnGap()
public int getColumnIPD()
public MainReference getMainReference()
public boolean isEmpty()
isEmpty in class RegionReferencepublic BeforeFloat getBeforeFloat()
public Footnote getFootnote()
public int getRemainingBPD()
public void setWritingModeTraits(WritingModeTraitsGetter wmtg)
setWritingModeTraits in class Areawmtg - a WM traits getterpublic Object clone() throws CloneNotSupportedException
clone in class RegionReferenceCloneNotSupportedExceptionCopyright © 2023 Apache Software Foundation. All rights reserved.