public class MainReference extends Area
bidiLevel, 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 |
|---|
MainReference(BodyRegion parent)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Span |
createSpan(boolean spanAll)
Add a span area to this area.
|
int |
getColumnCount() |
int |
getColumnGap() |
Span |
getCurrentSpan()
Get the span area currently being filled (i.e., the last span created).
|
List<Span> |
getSpans()
Get the span areas from this area.
|
boolean |
isEmpty()
Indicates whether any child areas have been added to this reference area.
|
void |
setSpans(List<Span> spans)
Do not use.
|
void |
setWritingModeTraits(WritingModeTraitsGetter wmtg)
Sets the writing mode traits for the spans of this main
reference area.
|
activateEffectiveIPD, addChildArea, addTrait, clone, 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, setTraits, toStringaddExtensionAttachment, getExtensionAttachments, getForeignAttributes, getForeignAttributeValue, hasExtensionAttachments, setExtensionAttachments, setForeignAttribute, setForeignAttributespublic MainReference(BodyRegion parent)
parent - the body region this reference area is placed in.public Span createSpan(boolean spanAll)
spanAll - whether to make a single-column spanpublic List<Span> getSpans()
public void setSpans(List<Span> spans)
spans - content already laid outpublic Span getCurrentSpan()
public boolean isEmpty()
public int getColumnCount()
public int getColumnGap()
public void setWritingModeTraits(WritingModeTraitsGetter wmtg)
setWritingModeTraits in class Areawmtg - a WM traits getterCopyright © 2023 Apache Software Foundation. All rights reserved.