org.apache.fop.render.rtf.rtflib.tools
Class TableContext
java.lang.Object
org.apache.fop.render.rtf.rtflib.tools.TableContext
- ITableColumnsInfo
public class TableContext
extends java.lang.Object
Used when handling fo:table to hold information to build the table.
Contributor(s):
- Bertrand Delacretaz
- Trembicki-Guy, Ed
- Boris Poud??rous
- Peter Herweg
This class was originally developed for the JFOR project and
is now integrated into FOP.
decreaseRowSpannings
public void decreaseRowSpannings()
Added by Peter Herweg on 2002-06-29
This function is called after each finished table-row.
It decreases all values in colRowSpanningNumber by 1. If a value
reaches 0 row-spanning is finished, and the value won't be decreased anymore.
getColumnRowSpanningAttrs
public RtfAttributes getColumnRowSpanningAttrs()
- RtfAttributes of current row-spanning cell
getColumnRowSpanningNumber
public Integer getColumnRowSpanningNumber()
- Number of currently spanned rows
getColumnWidth
public float getColumnWidth()
Get current column width according to column iteration index
- getColumnWidth in interface ITableColumnsInfo
- INVALID_COLUMN_WIDTH if we cannot find the value
The 'public' modifier has been added by Boris Poud??rous for
'number-columns-spanned' processing
getNextRowBelongsToHeader
public boolean getNextRowBelongsToHeader()
- true, if next row belongs to header
selectFirstColumn
public void selectFirstColumn()
Reset the column iteration index, meant to be called when creating a new row
The 'public' modifier has been added by Boris Poud??rous for
'number-columns-spanned' processing
- selectFirstColumn in interface ITableColumnsInfo
selectNextColumn
public void selectNextColumn()
Increment the column iteration index
The 'public' modifier has been added by Boris Poud??rous for
'number-columns-spanned' processing
- selectNextColumn in interface ITableColumnsInfo
setColumnIndex
public void setColumnIndex(int index)
Set current column index.
setCurrentColumnRowSpanning
public void setCurrentColumnRowSpanning(Integer iRowSpanning,
RtfAttributes attrs)
iRowSpanning
- number of rows to spanattrs
- RtfAttributes of row-spanning cell
setCurrentFirstSpanningCol
public void setCurrentFirstSpanningCol(boolean bFirstSpanningCol)
bFirstSpanningCol
- specifies, if it's the first of
multiple spanned columns
setNextColumnRowSpanning
public void setNextColumnRowSpanning(Integer iRowSpanning,
RtfAttributes attrs)
iRowSpanning
- number of rows to span in next columnattrs
- RtfAttributes of row-spanning cell
setNextColumnWidth
public void setNextColumnWidth(Float width)
Adds a column and sets its width.
width
- Width of next column
setNextFirstSpanningCol
public void setNextFirstSpanningCol(boolean bFirstSpanningCol)
bFirstSpanningCol
- specifies, if it's the first of
multiple spanned columns
setNextRowBelongsToHeader
public void setNextRowBelongsToHeader(boolean value)
value
- Specifies, if next row belongs to header
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.