Package org.apache.fop.area.inline
Class InlineParent
java.lang.Object
org.apache.fop.area.AreaTreeObject
org.apache.fop.area.Area
org.apache.fop.area.inline.InlineArea
org.apache.fop.area.inline.InlineParent
- All Implemented Interfaces:
Serializable,Cloneable
- Direct Known Subclasses:
AbstractTextArea,BasicLinkArea,FilledArea,InlineBlock
Inline parent area.
This is an inline area that can have other inlines as children.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.fop.area.inline.InlineArea
InlineArea.InlineAdjustingInfo -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanControls whether the IPD is automatically adjusted based on the area's children.protected List<InlineArea> The list of inline areas added to this inline parent.protected intThe offset of the beforest child area of this area.Fields inherited from class org.apache.fop.area.inline.InlineArea
adjustingInfo, blockProgressionOffsetFields inherited from class org.apache.fop.area.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, traitsFields inherited from class org.apache.fop.area.AreaTreeObject
extensionAttachments, foreignAttributes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChildArea(Area c) Set the parent for the child area.booleanapplyVariationFactor(double variationFactor, int lineStretch, int lineShrink) recursively apply the variation factor to all descendant areascollectInlineRuns(List runs) Collection bidi inline runs.Get the child areas for this inline parent.voidReset bidirectionality level of all children to default (-1), signalling that they will inherit the level of their parent text area.voidsetFromFootnote(boolean fromFootnote) Methods inherited from class org.apache.fop.area.inline.InlineArea
getAdjustingInfo, getBlockProgressionOffset, getParentArea, handleIPDVariation, hasLineThrough, hasOverline, hasUnderline, increaseIPD, isAncestor, isAncestorOrSelf, isBlinking, notifyIPDVariation, setAdjustingInfo, setAdjustingInfo, setAdjustment, setBlockProgressionOffset, setParentAreaMethods inherited from class org.apache.fop.area.Area
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, toStringMethods inherited from class org.apache.fop.area.AreaTreeObject
addExtensionAttachment, getExtensionAttachments, getForeignAttributes, getForeignAttributeValue, hasExtensionAttachments, setExtensionAttachments, setForeignAttribute, setForeignAttributes
-
Field Details
-
inlines
The list of inline areas added to this inline parent. -
autoSize
protected transient boolean autoSizeControls whether the IPD is automatically adjusted based on the area's children. -
minChildOffset
protected int minChildOffsetThe offset of the beforest child area of this area.
-
-
Constructor Details
-
InlineParent
public InlineParent()
-
-
Method Details
-
addChildArea
Description copied from class:InlineAreaSet the parent for the child area. Add a child to this area. The default is to do nothing. Subclasses must override to do something if they can have child areas.- Overrides:
addChildAreain classInlineArea- Parameters:
c- the child area to add
-
getChildAreas
Get the child areas for this inline parent.- Returns:
- the list of child areas
-
applyVariationFactor
public boolean applyVariationFactor(double variationFactor, int lineStretch, int lineShrink) recursively apply the variation factor to all descendant areas- Overrides:
applyVariationFactorin classInlineArea- Parameters:
variationFactor- the variation factor that must be applied to adjustmentslineStretch- the total stretch of the linelineShrink- the total shrink of the line- Returns:
- true if there is an UnresolvedArea descendant
-
collectInlineRuns
Description copied from class:InlineAreaCollection bidi inline runs.- Overrides:
collectInlineRunsin classInlineArea- Parameters:
runs- current list of inline runs- Returns:
- modified list of inline runs, having appended new run
-
resetChildrenLevel
public void resetChildrenLevel()Reset bidirectionality level of all children to default (-1), signalling that they will inherit the level of their parent text area. -
setFromFootnote
public void setFromFootnote(boolean fromFootnote) - Overrides:
setFromFootnotein classArea
-