org.apache.fop.area.inline

Class Container

Implemented Interfaces:
Serializable

public class Container
extends Area

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.

Field Summary

protected List
blocks
The list of block areas stacked inside this container
protected int
width
The width of this container

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

Container()
Create a new container area

Method Summary

void
addBlock(Block block)
Add the block to this area.
List
getBlocks()
Get the block areas stacked inside this container area.
int
getWidth()
Get the width of this container area.

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

blocks

protected List blocks
The list of block areas stacked inside this container

width

protected int width
The width of this container

Constructor Details

Container

public Container()
Create a new container area

Method Details

addBlock

public void addBlock(Block block)
Add the block to this area.
Parameters:
block - the block area to add

getBlocks

public List 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

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