com.lowagie.text.rtf
Class RtfRow

java.lang.Object
  extended by com.lowagie.text.rtf.RtfRow

Deprecated. Please move to the RtfWriter2 and associated classes.

public class RtfRow
extends Object

A Helper Class for the RtfWriter.

Do not use it directly ONLY FOR USE WITH THE RtfWriter NOT with the RtfWriter2. Parts of this Class were contributed by Steffen Stundzig. Many thanks for the improvements. Code added by c


Field Summary
static byte[] tableBorder
          Deprecated. Table border solid
static byte[] tableBorderColor
          Deprecated. Table border color
static byte[] tableBorderWidth
          Deprecated. Table border width
 
Constructor Summary
RtfRow(RtfWriter writer, RtfTable mainTable)
          Deprecated. Create a new RtfRow.
 
Method Summary
 boolean importRow(Row row, float[] propWidths, int tableWidth, int pageWidth, int cellpadding, int cellspacing, int borders, Color borderColor, float borderWidth, int y)
          Deprecated. Import a Row.
 void pregenerateRows(int columns)
          Deprecated. Pregenerate the RtfCells in this RtfRow.
 void setMerge(int x, int mergeType, RtfCell mergeCell)
          Deprecated. RtfTables call this method from their own setMerge() to specify that a certain other cell is to be merged with it.
 boolean writeRow(ByteArrayOutputStream os, int rowNum, Table table)
          Deprecated. Write the RtfRow to the specified OutputStream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tableBorder

public static final byte[] tableBorder
Deprecated. 
Table border solid


tableBorderWidth

public static final byte[] tableBorderWidth
Deprecated. 
Table border width


tableBorderColor

public static final byte[] tableBorderColor
Deprecated. 
Table border color

Constructor Detail

RtfRow

public RtfRow(RtfWriter writer,
              RtfTable mainTable)
Deprecated. 
Create a new RtfRow.

Parameters:
writer - The RtfWriter that this RtfRow belongs to
mainTable - The RtfTable that created this RtfRow
Method Detail

pregenerateRows

public void pregenerateRows(int columns)
Deprecated. 
Pregenerate the RtfCells in this RtfRow.

Parameters:
columns - The number of RtfCells to be generated.

importRow

public boolean importRow(Row row,
                         float[] propWidths,
                         int tableWidth,
                         int pageWidth,
                         int cellpadding,
                         int cellspacing,
                         int borders,
                         Color borderColor,
                         float borderWidth,
                         int y)
Deprecated. 
Import a Row.

All the parameters are taken from the RtfTable which contains this RtfRow and they do exactely what they say

Parameters:
row -
propWidths - in percent
tableWidth - in percent
pageWidth -
cellpadding -
cellspacing -
borders -
borderColor -
borderWidth -
y -
Returns:
true if importing the row succeeded

writeRow

public boolean writeRow(ByteArrayOutputStream os,
                        int rowNum,
                        Table table)
                 throws DocumentException,
                        IOException
Deprecated. 
Write the RtfRow to the specified OutputStream.

Parameters:
os - The OutputStream to which this RtfRow should be written to.
rowNum - The index of this row in the containing table.
table - The Table which contains the original Row.
Returns:
true if writing the row succeeded
Throws:
DocumentException
IOException

setMerge

public void setMerge(int x,
                     int mergeType,
                     RtfCell mergeCell)
Deprecated. 
RtfTables call this method from their own setMerge() to specify that a certain other cell is to be merged with it.

Parameters:
x - The column position of the cell to be merged
mergeType - The merge type specifies the kind of merge to be applied (MERGE_HORIZ_PREV, MERGE_VERT_PREV, MERGE_BOTH_PREV)
mergeCell - The RtfCell that the cell at x and y is to be merged with


Copyright © 2006-2007 EGIZ - E-Government Innovationszentrum. All Rights Reserved.