|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lowagie.text.rtf.RtfRow
public class RtfRow
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 RtfCell s in this RtfRow . |
void |
setMerge(int x,
int mergeType,
RtfCell mergeCell)
Deprecated. RtfTable s 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 |
---|
public static final byte[] tableBorder
public static final byte[] tableBorderWidth
public static final byte[] tableBorderColor
Constructor Detail |
---|
public RtfRow(RtfWriter writer, RtfTable mainTable)
RtfRow
.
writer
- The RtfWriter
that this RtfRow
belongs tomainTable
- The RtfTable
that created this
RtfRow
Method Detail |
---|
public void pregenerateRows(int columns)
RtfCell
s in this RtfRow
.
columns
- The number of RtfCell
s to be generated.public boolean importRow(Row row, float[] propWidths, int tableWidth, int pageWidth, int cellpadding, int cellspacing, int borders, Color borderColor, float borderWidth, int y)
Row
.
All the parameters are taken from the RtfTable
which contains
this RtfRow
and they do exactely what they say
row
- propWidths
- in percenttableWidth
- in percentpageWidth
- cellpadding
- cellspacing
- borders
- borderColor
- borderWidth
- y
-
public boolean writeRow(ByteArrayOutputStream os, int rowNum, Table table) throws DocumentException, IOException
RtfRow
to the specified OutputStream
.
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
.
DocumentException
IOException
public void setMerge(int x, int mergeType, RtfCell mergeCell)
RtfTable
s call this method from their own setMerge() to
specify that a certain other cell is to be merged with it.
x
- The column position of the cell to be mergedmergeType
- 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |