public class Container extends Area
Modifier and Type | Field and Description |
---|---|
protected java.util.List<Block> |
blocks
The list of block areas stacked inside this container
|
protected int |
width
The width of this container
|
bidiLevel, bpd, CLASS_ABSOLUTE, CLASS_BEFORE_FLOAT, CLASS_FIXED, CLASS_FOOTNOTE, CLASS_MAX, CLASS_NORMAL, CLASS_SIDE_FLOAT, ipd, log, ORIENT_0, ORIENT_180, ORIENT_270, ORIENT_90, traits
extensionAttachments, foreignAttributes
Constructor and Description |
---|
Container()
Create a new container area
|
Modifier and Type | Method and Description |
---|---|
void |
addBlock(Block block)
Add the block to this area.
|
java.util.List |
getBlocks()
Get the block areas stacked inside this container area.
|
int |
getWidth()
Get the width of this container area.
|
addChildArea, addTrait, clone, getAllocBPD, getAllocIPD, getAreaClass, getBidiLevel, getBorderAndPaddingWidthAfter, getBorderAndPaddingWidthBefore, getBorderAndPaddingWidthEnd, getBorderAndPaddingWidthStart, getBPD, getIPD, getSpaceAfter, getSpaceBefore, getSpaceEnd, getSpaceStart, getTrait, getTraitAsBoolean, getTraitAsInteger, getTraits, hasTrait, hasTraits, resetBidiLevel, setAreaClass, setBidiLevel, setBPD, setIPD, setTraits, setWritingModeTraits, toString
addExtensionAttachment, getExtensionAttachments, getForeignAttributes, getForeignAttributeValue, hasExtensionAttachments, setExtensionAttachments, setForeignAttribute, setForeignAttributes
protected java.util.List<Block> blocks
protected int width
public void addBlock(Block block)
block
- the block area to addpublic java.util.List getBlocks()
public int getWidth()
Copyright 1999-2012 The Apache Software Foundation. All Rights Reserved.