public class Span 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, traits
extensionAttachments, foreignAttributes
Constructor and Description |
---|
Span(int colCount,
int colGap,
int ipd)
Create a span area with the number of columns for this span area.
|
Modifier and Type | Method and Description |
---|---|
int |
getColumnCount()
Get the column count for this span area.
|
int |
getColumnGap()
Get the column gap for this span area.
|
int |
getColumnWidth()
Get the width of a single column within this Span
|
NormalFlow |
getCurrentFlow()
Get the NormalFlow area currently being processed
|
int |
getCurrentFlowIndex() |
int |
getHeight()
Get the height of this span area.
|
NormalFlow |
getNormalFlow(int colRequested)
Get the normal flow area for a particular column.
|
boolean |
hasMoreFlows()
Indicates if the Span has unprocessed flows.
|
boolean |
isEmpty()
Indicates whether any child areas have been added to this span area.
|
NormalFlow |
moveToNextFlow()
Indicate to the Span that the next column is being
processed.
|
void |
notifyFlowsFinished()
Called to notify the span that all its flows have been fully generated so it can update
its own BPD extent.
|
void |
setWritingModeTraits(WritingModeTraitsGetter wmtg)
Sets the writing mode traits for the main reference area of
this span area.
|
String |
toString() |
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, isFromFootnote, resetBidiLevel, setAreaClass, setBidiLevel, setBPD, setChangeBarList, setFromFootnote, setIPD, setTraits
addExtensionAttachment, getExtensionAttachments, getForeignAttributes, getForeignAttributeValue, hasExtensionAttachments, setExtensionAttachments, setForeignAttribute, setForeignAttributes
public Span(int colCount, int colGap, int ipd)
colCount
- the number of columns in the spancolGap
- the column gap between each columnipd
- the total ipd of the spanpublic int getColumnCount()
public int getColumnGap()
public int getColumnWidth()
public int getHeight()
public NormalFlow getNormalFlow(int colRequested)
colRequested
- the zero-based column number of the flowpublic NormalFlow getCurrentFlow()
public int getCurrentFlowIndex()
public NormalFlow moveToNextFlow()
public boolean hasMoreFlows()
public void notifyFlowsFinished()
public boolean isEmpty()
public void setWritingModeTraits(WritingModeTraitsGetter wmtg)
setWritingModeTraits
in class Area
wmtg
- a WM traits getterCopyright © 2025 Apache Software Foundation. All rights reserved.