fop 0.90alpha1

org.apache.fop.render.rtf.rtflib.tools
Class TableContext

java.lang.Object
  |
  +--org.apache.fop.render.rtf.rtflib.tools.TableContext
All Implemented Interfaces:
ITableColumnsInfo

public class TableContext
extends java.lang.Object
implements ITableColumnsInfo

Used when handling fo:table to hold information to build the table. Contributor(s):

Author:
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.

Fields inherited from interface org.apache.fop.render.rtf.rtflib.rtfdoc.ITableColumnsInfo
INVALID_COLUM_WIDTH
 
Constructor Summary
TableContext(BuilderContext ctx)
           
 
Method Summary
 void decreaseRowSpannings()
          Added by Peter Herweg on 2002-06-29 This function is called after each finished table-row.
 int getColumnIndex()
          Added by Boris Poudérous on 07/22/2002
 RtfAttributes getColumnRowSpanningAttrs()
           
 java.lang.Integer getColumnRowSpanningNumber()
           
 float getColumnWidth()
          Get current column width according to column iteration index
 boolean getNextRowBelongsToHeader()
           
 int getNumberOfColumns()
          Added by Boris Poudérous on 07/22/2002
 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
 void selectNextColumn()
          Increment the column iteration index The 'public' modifier has been added by Boris Poudérous for 'number-columns-spanned' processing
 void setCurrentColumnRowSpanning(java.lang.Integer iRowSpanning, RtfAttributes attrs)
           
 void setNextColumnRowSpanning(java.lang.Integer iRowSpanning, RtfAttributes attrs)
           
 void setNextColumnWidth(java.lang.Float width)
           
 void setNextRowBelongsToHeader(boolean value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableContext

public TableContext(BuilderContext ctx)
Method Detail

setNextRowBelongsToHeader

public void setNextRowBelongsToHeader(boolean value)

getNextRowBelongsToHeader

public boolean getNextRowBelongsToHeader()

setNextColumnWidth

public void setNextColumnWidth(java.lang.Float width)
                        throws java.lang.Exception

getColumnRowSpanningAttrs

public RtfAttributes getColumnRowSpanningAttrs()

getColumnRowSpanningNumber

public java.lang.Integer getColumnRowSpanningNumber()

setCurrentColumnRowSpanning

public void setCurrentColumnRowSpanning(java.lang.Integer iRowSpanning,
                                        RtfAttributes attrs)
                                 throws java.lang.Exception

setNextColumnRowSpanning

public void setNextColumnRowSpanning(java.lang.Integer iRowSpanning,
                                     RtfAttributes attrs)

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.

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
Specified by:
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
Specified by:
selectNextColumn in interface ITableColumnsInfo

getColumnWidth

public float getColumnWidth()
Get current column width according to column iteration index
Specified by:
getColumnWidth in interface ITableColumnsInfo
Returns:
INVALID_COLUMN_WIDTH if we cannot find the value The 'public' modifier has been added by Boris Poudérous for 'number-columns-spanned' processing

getColumnIndex

public int getColumnIndex()
Added by Boris Poudérous on 07/22/2002
Specified by:
getColumnIndex in interface ITableColumnsInfo
Following copied from interface: org.apache.fop.render.rtf.rtflib.rtfdoc.ITableColumnsInfo
Returns:
current column iteration index

getNumberOfColumns

public int getNumberOfColumns()
Added by Boris Poudérous on 07/22/2002
Specified by:
getNumberOfColumns in interface ITableColumnsInfo
Following copied from interface: org.apache.fop.render.rtf.rtflib.rtfdoc.ITableColumnsInfo
Returns:
number of columns

fop 0.90alpha1

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