Package org.apache.fop.area.inline
Class Container
java.lang.Object
org.apache.fop.area.AreaTreeObject
org.apache.fop.area.Area
org.apache.fop.area.inline.Container
- All Implemented Interfaces:
Serializable
,Cloneable
Container area for inline container.
This area should be placed in a viewport as a result of the
inline container formatting object.
This allows an inline area to have blocks as children.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionThe list of block areas stacked inside this containerprotected int
The width of this containerFields 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, traits
Fields inherited from class org.apache.fop.area.AreaTreeObject
extensionAttachments, foreignAttributes
-
Constructor Summary
-
Method Summary
Methods 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, resetBidiLevel, setAreaClass, setBidiLevel, setBPD, setChangeBarList, setIPD, setTraits, setWritingModeTraits, toString
Methods inherited from class org.apache.fop.area.AreaTreeObject
addExtensionAttachment, getExtensionAttachments, getForeignAttributes, getForeignAttributeValue, hasExtensionAttachments, setExtensionAttachments, setForeignAttribute, setForeignAttributes
-
Field Details
-
blocks
The list of block areas stacked inside this container -
width
protected int widthThe width of this container
-
-
Constructor Details
-
Container
public Container()Create a new container area
-
-
Method Details
-
addChildArea
Description copied from class: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:
addChildArea
in classArea
- Parameters:
child
- the child area to add
-
getBlocks
Get the block areas stacked inside this container area.- Returns:
- the list of block areas
-
getWidth
public int getWidth()Get the width of this container area.- Returns:
- the width
-