org.apache.fop.area
Class Block
java.lang.Object
|
+--org.apache.fop.area.Area
|
+--org.apache.fop.area.BlockParent
|
+--org.apache.fop.area.Block
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- BlockViewport
- public class Block
- extends BlockParent
This is the block area class.
It holds child block areas such as other blocks or lines.
- See Also:
- Serialized Form
Field Summary |
static int |
ABSOLUTE
Relative to the block parent but not effecting the stacking
Used for block-container, tables and lists. |
static int |
FIXED
Relative to a viewport/page but not effecting the stacking
Used for block-container. |
static int |
RELATIVE
Placed relative to the flow position.
|
static int |
STACK
Normally stacked with other blocks. |
Fields inherited from class org.apache.fop.area.Area |
bpd, BT, CLASS_ABSOLUTE, CLASS_BEFORE_FLOAT, CLASS_FIXED, CLASS_FOOTNOTE, CLASS_MAX, CLASS_NORMAL, CLASS_SIDE_FLOAT, ipd, log, LR, ORIENT_0, ORIENT_180, ORIENT_270, ORIENT_90, props, RL, TB |
Constructor Summary |
Block()
|
Methods inherited from class org.apache.fop.area.Area |
addTrait, addTrait, getAllocBPD, getAllocIPD, getAreaClass, getBooleanTrait, getBorderAndPaddingWidthAfter, getBorderAndPaddingWidthBefore, getBorderAndPaddingWidthEnd, getBorderAndPaddingWidthStart, getBPD, getIPD, getSpaceAfter, getSpaceBefore, getSpaceEnd, getSpaceStart, getTrait, getTraitAsInteger, getTraits, hasTrait, hasTraits, setAreaClass, setBPD, setIPD, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
STACK
public static final int STACK
- Normally stacked with other blocks.
RELATIVE
public static final int RELATIVE
- Placed relative to the flow position.
This effects the flow placement of stacking normally.
ABSOLUTE
public static final int ABSOLUTE
- Relative to the block parent but not effecting the stacking
Used for block-container, tables and lists.
FIXED
public static final int FIXED
- Relative to a viewport/page but not effecting the stacking
Used for block-container.
Block
public Block()
addBlock
public void addBlock(Block block)
- Add the block to this block area.
- Overrides:
addBlock
in class BlockParent
- Parameters:
block
- the block area to add
addBlock
public void addBlock(Block block,
boolean autoHeight)
- Add the block to this block area.
- Parameters:
block
- the block area to addautoHeight
- increase the height of the block.
addLineArea
public void addLineArea(LineArea line)
- Add the line area to this block area.
- Parameters:
line
- the line area to add
setPositioning
public void setPositioning(int pos)
- Set the positioning of this area.
- Parameters:
pos
- the positioning to use when rendering this area
getPositioning
public int getPositioning()
- Get the positioning of this area.
- Returns:
- the positioning to use when rendering this area
getStartIndent
public int getStartIndent()
- Returns:
- the start-indent trait
Copyright 1999-2006 The Apache Software Foundation. All Rights Reserved.