public class MainReference extends Area
bidiLevel, bpd, CLASS_ABSOLUTE, CLASS_BEFORE_FLOAT, CLASS_FIXED, CLASS_FOOTNOTE, CLASS_MAX, CLASS_NORMAL, CLASS_SIDE_FLOAT, ipd, log, ORIENT_0, ORIENT_180, ORIENT_270, ORIENT_90, traits
extensionAttachments, 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).
|
java.util.List |
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.
|
addChildArea, addTrait, clone, getAllocBPD, getAllocIPD, getAreaClass, getBidiLevel, getBorderAndPaddingWidthAfter, getBorderAndPaddingWidthBefore, getBorderAndPaddingWidthEnd, getBorderAndPaddingWidthStart, getBPD, getIPD, getSpaceAfter, getSpaceBefore, getSpaceEnd, getSpaceStart, getTrait, getTraitAsBoolean, getTraitAsInteger, getTraits, hasTrait, hasTraits, resetBidiLevel, setAreaClass, setBidiLevel, setBPD, setIPD, setTraits, toString
addExtensionAttachment, getExtensionAttachments, getForeignAttributes, getForeignAttributeValue, hasExtensionAttachments, setExtensionAttachments, setForeignAttribute, setForeignAttributes
public 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 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 Area
wmtg
- a WM traits getterCopyright 1999-2012 The Apache Software Foundation. All Rights Reserved.