public class InlineParent extends InlineArea
InlineArea.InlineAdjustingInfo
Modifier and Type | Field and Description |
---|---|
protected boolean |
autoSize
Controls whether the IPD is automatically adjusted based on the area's children.
|
protected java.util.List |
inlines
The list of inline areas added to this inline parent.
|
adjustingInfo, offset
bpd, BT, CLASS_ABSOLUTE, CLASS_BEFORE_FLOAT, CLASS_FIXED, CLASS_FOOTNOTE, CLASS_MAX, CLASS_NORMAL, CLASS_SIDE_FLOAT, ipd, log, LR, ORIENT_0, ORIENT_180, ORIENT_270, ORIENT_90, props, RL, TB
extensionAttachments, foreignAttributes
Constructor and Description |
---|
InlineParent()
Create a new inline parent to add areas to.
|
Modifier and Type | Method and Description |
---|---|
void |
addChildArea(Area childArea)
Override generic Area method.
|
boolean |
applyVariationFactor(double variationFactor,
int lineStretch,
int lineShrink)
recursively apply the variation factor to all descendant areas
|
java.util.List |
getChildAreas()
Get the child areas for this inline parent.
|
getAdjustingInfo, getOffset, getParentArea, handleIPDVariation, hasLineThrough, hasOverline, hasUnderline, increaseIPD, isBlinking, notifyIPDVariation, setAdjustingInfo, setAdjustment, setOffset, setParentArea
addTrait, getAllocBPD, getAllocIPD, getAreaClass, getBorderAndPaddingWidthAfter, getBorderAndPaddingWidthBefore, getBorderAndPaddingWidthEnd, getBorderAndPaddingWidthStart, getBPD, getIPD, getSpaceAfter, getSpaceBefore, getSpaceEnd, getSpaceStart, getTrait, getTraitAsBoolean, getTraitAsInteger, getTraits, hasTrait, hasTraits, setAreaClass, setBPD, setIPD, toString
addExtensionAttachment, getExtensionAttachments, getForeignAttributes, getForeignAttributeValue, hasExtensionAttachments, setExtensionAttachments, setForeignAttribute, setForeignAttributes
protected java.util.List inlines
protected transient boolean autoSize
public void addChildArea(Area childArea)
addChildArea
in class InlineArea
childArea
- the child area to addpublic java.util.List getChildAreas()
public boolean applyVariationFactor(double variationFactor, int lineStretch, int lineShrink)
applyVariationFactor
in class InlineArea
variationFactor
- the variation factor that must be applied to adjustmentslineStretch
- the total stretch of the linelineShrink
- the total shrink of the lineCopyright 1999-2010 The Apache Software Foundation. All Rights Reserved.