public abstract class AbstractTextArea extends InlineParent
Modifier and Type | Class and Description |
---|---|
protected class |
AbstractTextArea.TextAdjustingInfo
this class stores information about spaces and potential adjustments
that can be used in order to re-compute adjustments when a
page-number or a page-number-citation is resolved
|
InlineArea.InlineAdjustingInfo
autoSize, inlines, minChildOffset
adjustingInfo, blockProgressionOffset
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 |
---|
AbstractTextArea()
Default constructor
|
AbstractTextArea(int stretch,
int shrink,
int adj)
Constructor with extra parameters:
create a TextAdjustingInfo object
|
Modifier and Type | Method and Description |
---|---|
boolean |
applyVariationFactor(double variationFactor,
int lineStretch,
int lineShrink)
recursively apply the variation factor to all descendant areas
|
int |
getBaselineOffset()
Get baseline offset, i.e.
|
int |
getTextLetterSpaceAdjust()
Get text letter space adjust.
|
int |
getTextWordSpaceAdjust()
Get text word space adjust.
|
void |
setBaselineOffset(int baselineOffset)
Set the baseline offset.
|
void |
setSpaceDifference(int spaceDiff)
Set the difference between optimal width of a space and
default width of a space according to the font; this part
of the space adjustment is fixed and must not be
multiplied by the variation factor.
|
void |
setTextLetterSpaceAdjust(int textLetterSpaceAdjust)
Set text letter space adjust.
|
void |
setTextWordSpaceAdjust(int textWordSpaceAdjust)
Set text word space adjust.
|
addChildArea, collectInlineRuns, getChildAreas, resetChildrenLevel, setFromFootnote
getAdjustingInfo, getBlockProgressionOffset, getParentArea, handleIPDVariation, hasLineThrough, hasOverline, hasUnderline, increaseIPD, isAncestor, isAncestorOrSelf, isBlinking, notifyIPDVariation, setAdjustingInfo, setAdjustingInfo, setAdjustment, setBlockProgressionOffset, setParentArea
activateEffectiveIPD, 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, setIPD, setTraits, setWritingModeTraits, toString
addExtensionAttachment, getExtensionAttachments, getForeignAttributes, getForeignAttributeValue, hasExtensionAttachments, setExtensionAttachments, setForeignAttribute, setForeignAttributes
public AbstractTextArea()
public AbstractTextArea(int stretch, int shrink, int adj)
stretch
- the available stretch of the textshrink
- the available shrink of the textadj
- the current adjustment of the areapublic int getTextWordSpaceAdjust()
public void setTextWordSpaceAdjust(int textWordSpaceAdjust)
textWordSpaceAdjust
- the text word space adjustmentpublic int getTextLetterSpaceAdjust()
public void setTextLetterSpaceAdjust(int textLetterSpaceAdjust)
textLetterSpaceAdjust
- the text letter space adjustmentpublic void setSpaceDifference(int spaceDiff)
spaceDiff
- the space differencepublic boolean applyVariationFactor(double variationFactor, int lineStretch, int lineShrink)
applyVariationFactor
in class InlineParent
variationFactor
- the variation factor that must be applied to adjustmentslineStretch
- the total stretch of the linelineShrink
- the total shrink of the linepublic int getBaselineOffset()
public void setBaselineOffset(int baselineOffset)
baselineOffset
- the baseline offsetCopyright © 2025 Apache Software Foundation. All rights reserved.