org.apache.fop.area.inline

Class InlineParent

Implemented Interfaces:
Serializable
Known Direct Subclasses:
AbstractTextArea, FilledArea

public class InlineParent
extends InlineArea

Inline parent area. This is an inline area that can have other inlines as children.

Nested Class Summary

Nested classes/interfaces inherited from class org.apache.fop.area.inline.InlineArea

InlineArea.InlineAdjustingInfo

Field Summary

protected boolean
autoSize
Controls whether the IPD is automatically adjusted based on the area's children.
protected List
inlines
The list of inline areas added to this inline parent.

Fields inherited from class org.apache.fop.area.inline.InlineArea

adjustingInfo, offset

Fields inherited from class org.apache.fop.area.Area

BT, CLASS_ABSOLUTE, CLASS_BEFORE_FLOAT, CLASS_FIXED, CLASS_FOOTNOTE, CLASS_MAX, CLASS_NORMAL, CLASS_SIDE_FLOAT, LR, ORIENT_0, ORIENT_180, ORIENT_270, ORIENT_90, RL, TB, bpd, ipd, log, props

Fields inherited from class org.apache.fop.area.AreaTreeObject

foreignAttributes

Constructor Summary

InlineParent()
Create a new inline parent to add areas to.

Method Summary

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
List
getChildAreas()
Get the child areas for this inline parent.

Methods inherited from class org.apache.fop.area.inline.InlineArea

addChildArea, applyVariationFactor, getAdjustingInfo, getOffset, getParentArea, handleIPDVariation, hasLineThrough, hasOverline, hasUnderline, increaseIPD, isBlinking, notifyIPDVariation, setAdjustingInfo, setAdjustment, setOffset, setParentArea

Methods inherited from class org.apache.fop.area.Area

addChildArea, addTrait, addTrait, getAllocBPD, getAllocIPD, getAreaClass, getBPD, getBooleanTrait, getBorderAndPaddingWidthAfter, getBorderAndPaddingWidthBefore, getBorderAndPaddingWidthEnd, getBorderAndPaddingWidthStart, getIPD, getSpaceAfter, getSpaceBefore, getSpaceEnd, getSpaceStart, getTrait, getTraitAsInteger, getTraits, hasTrait, hasTraits, setAreaClass, setBPD, setIPD, toString

Methods inherited from class org.apache.fop.area.AreaTreeObject

getForeignAttributeValue, getForeignAttributes, setForeignAttribute, setForeignAttributes

Field Details

autoSize

protected boolean autoSize
Controls whether the IPD is automatically adjusted based on the area's children.

inlines

protected List inlines
The list of inline areas added to this inline parent.

Constructor Details

InlineParent

public InlineParent()
Create a new inline parent to add areas to.

Method Details

addChildArea

public void addChildArea(Area childArea)
Override generic Area method.
Overrides:
addChildArea in interface InlineArea
Parameters:
childArea - the child area to add

applyVariationFactor

public boolean applyVariationFactor(double variationFactor,
                                    int lineStretch,
                                    int lineShrink)
recursively apply the variation factor to all descendant areas
Overrides:
applyVariationFactor in interface InlineArea
Parameters:
variationFactor - the variation factor that must be applied to adjustments
lineStretch - the total stretch of the line
lineShrink - the total shrink of the line
Returns:
true if there is an UnresolvedArea descendant

getChildAreas

public List getChildAreas()
Get the child areas for this inline parent.
Returns:
the list of child areas

Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.