org.apache.fop.layoutmgr.table
Class TableContentLayoutManager
java.lang.Object
org.apache.fop.layoutmgr.table.TableContentLayoutManager
- PercentBaseContext
public class TableContentLayoutManager
extends java.lang.Object
Layout manager for table contents, particularly managing the creation of combined element lists.
TableContentLayoutManager
public TableContentLayoutManager(TableLayoutManager parent)
Main constructor
parent
- Parent layout manager
addAreas
public void addAreas(PositionIterator parentIter,
LayoutContext layoutContext)
Adds the areas generated by this layout manager to the area tree.
parentIter
- the position iteratorlayoutContext
- the layout context for adding areas
addRowBackgroundArea
public void addRowBackgroundArea(TableRow row,
int bpd,
int ipd,
int yoffset)
Adds the area for the row background if any.
row
- row for which to generate the backgroundbpd
- block-progression-dimension of the rowipd
- inline-progression-dimension of the rowyoffset
- Y offset at which to paint
getColumns
public ColumnSetup getColumns()
- the column setup of this table
getFooterElements
protected LinkedList getFooterElements()
getFooterNetHeight
protected int getFooterNetHeight()
getHeaderElements
protected LinkedList getHeaderElements()
getHeaderNetHeight
protected int getHeaderNetHeight()
getNextKnuthElements
public LinkedList getNextKnuthElements(LayoutContext context,
int alignment)
getRowArea
public Block getRowArea(TableRow row)
Get the area for a row for background.
row
- the table-row object or null
- the row area or null if there's no background to paint
getUsedBPD
public int getUsedBPD()
- the amount of block-progression-dimension used by the content
getXOffsetOfGridUnit
protected int getXOffsetOfGridUnit(GridUnit gu)
Retuns the X offset of the given grid unit.
setStartXOffset
public void setStartXOffset(int startXOffset)
Sets the overall starting x-offset. Used for proper placement of cells.
startXOffset
- starting x-offset (table's start-indent)
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.