java.io.Serializable, java.lang.Cloneablepublic 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 | Description |
|---|---|
MainReference(BodyRegion parent) |
Constructor
|
| Modifier and Type | Method | 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).
|
java.util.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(java.util.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, getEffectiveAllocIPD, getEffectiveIPD, getIPD, getSpaceAfter, getSpaceBefore, getSpaceEnd, getSpaceStart, getTrait, getTraitAsBoolean, getTraitAsInteger, getTraits, hasTrait, hasTraits, resetBidiLevel, setAreaClass, setBidiLevel, setBPD, 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 java.util.List<Span> getSpans()
public void setSpans(java.util.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 1999-2016 The Apache Software Foundation. All Rights Reserved.