|
fop 2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.render.rtf.rtflib.tools.TableContext
public class TableContext
Used when handling fo:table to hold information to build the table.
This work was authored by Bertrand Delacretaz ([email protected]), Ed Trembicki-Guy ([email protected]), Boris Poudérous ([email protected]), and Peter Herweg ([email protected]).
This class was originally developed for the JFOR project and is now integrated into FOP.
Field Summary |
---|
Fields inherited from interface org.apache.fop.render.rtf.rtflib.rtfdoc.ITableColumnsInfo |
---|
INVALID_COLUMN_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()
|
RtfAttributes |
getColumnRowSpanningAttrs()
|
java.lang.Integer |
getColumnRowSpanningNumber()
|
float |
getColumnWidth()
Get current column width according to column iteration index |
boolean |
getFirstSpanningCol()
|
boolean |
getNextRowBelongsToHeader()
|
int |
getNumberOfColumns()
|
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 |
setColumnIndex(int index)
Set current column index. |
void |
setCurrentColumnRowSpanning(java.lang.Integer iRowSpanning,
RtfAttributes attrs)
|
void |
setCurrentFirstSpanningCol(boolean bFirstSpanningCol)
|
void |
setNextColumnRowSpanning(java.lang.Integer iRowSpanning,
RtfAttributes attrs)
|
void |
setNextColumnWidth(java.lang.Float width)
Adds a column and sets its width. |
void |
setNextFirstSpanningCol(boolean bFirstSpanningCol)
|
void |
setNextRowBelongsToHeader(boolean value)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TableContext(BuilderContext ctx)
ctx
- BuilderContextMethod Detail |
---|
public void setNextRowBelongsToHeader(boolean value)
value
- Specifies, if next row belongs to headerpublic boolean getNextRowBelongsToHeader()
public void setNextColumnWidth(java.lang.Float width)
width
- Width of next columnpublic RtfAttributes getColumnRowSpanningAttrs()
public java.lang.Integer getColumnRowSpanningNumber()
public boolean getFirstSpanningCol()
getFirstSpanningCol
in interface ITableColumnsInfo
public void setCurrentColumnRowSpanning(java.lang.Integer iRowSpanning, RtfAttributes attrs)
iRowSpanning
- number of rows to spanattrs
- RtfAttributes of row-spanning cellpublic void setNextColumnRowSpanning(java.lang.Integer iRowSpanning, RtfAttributes attrs)
iRowSpanning
- number of rows to span in next columnattrs
- RtfAttributes of row-spanning cellpublic void setCurrentFirstSpanningCol(boolean bFirstSpanningCol)
bFirstSpanningCol
- specifies, if it's the first of
multiple spanned columnspublic void setNextFirstSpanningCol(boolean bFirstSpanningCol)
bFirstSpanningCol
- specifies, if it's the first of
multiple spanned columnspublic void decreaseRowSpannings()
public void selectFirstColumn()
selectFirstColumn
in interface ITableColumnsInfo
public void selectNextColumn()
selectNextColumn
in interface ITableColumnsInfo
public float getColumnWidth()
getColumnWidth
in interface ITableColumnsInfo
public void setColumnIndex(int index)
index
- New column indexpublic int getColumnIndex()
getColumnIndex
in interface ITableColumnsInfo
public int getNumberOfColumns()
getNumberOfColumns
in interface ITableColumnsInfo
|
fop 2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |