|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lowagie.text.rtf.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 | |
---|---|
private Color |
borderColor
The border color of this RtfRow |
private int |
borders
The borders of this RtfRow |
private float |
borderWidth
The border width of this RtfRow |
private int |
cellpadding
The default cellpadding of RtfCells in this
RtfRow |
private ArrayList |
cells
List of RtfCell s in this RtfRow |
private int |
cellspacing
The default cellspacing of RtfCells in this
RtfRow |
private static byte[] |
graphLeft
|
private RtfTable |
mainTable
The RtfRow belongs |
private Row |
origRow
Original Row |
private static byte[] |
rowAlignCenter
Table alignment center |
private static byte[] |
rowAlignLeft
Table alignment left |
private static byte[] |
rowAlignRight
Table alignment right |
private static byte[] |
rowAutofit
Table row autofit |
private static byte[] |
rowBegin
Table row defaults |
private static byte[] |
rowBorderBottom
Row border bottom |
private static byte[] |
rowBorderInlineHorizontal
Row border horiz inline |
private static byte[] |
rowBorderInlineVertical
Row border bottom |
private static byte[] |
rowBorderLeft
Row border left |
private static byte[] |
rowBorderRight
Row border right |
private static byte[] |
rowBorderTop
Row border top |
private static byte[] |
rowEnd
End of table row |
private static byte[] |
rowHeader
Table row header. |
private static byte[] |
rowKeep
Table row keep together. |
private static byte[] |
rowPaddingLeft
Default cell padding left |
private static byte[] |
rowPaddingLeftStyle
Default cell padding format left |
private static byte[] |
rowPaddingRight
Default cell padding right |
private static byte[] |
rowPaddingRightStyle
Default cell padding format right |
private static byte[] |
rowSpacingBottom
Default cell spacing bottom |
private static byte[] |
rowSpacingBottomStyle
Default cell spacing format bottom |
private static byte[] |
rowSpacingLeft
Default cell spacing left |
private static byte[] |
rowSpacingLeftStyle
Default cell spacing format left |
private static byte[] |
rowSpacingRight
Default cell spacing right |
private static byte[] |
rowSpacingRightStyle
Default cell spacing format right |
private static byte[] |
rowSpacingTop
Default cell spacing top |
private static byte[] |
rowSpacingTopStyle
Default cell spacing format top |
private static byte[] |
rowWidth
Row width |
private static byte[] |
rowWidthStyle
Row width format |
static byte[] |
tableBorder
Table border solid |
static byte[] |
tableBorderColor
Table border color |
static byte[] |
tableBorderWidth
Table border width |
private int |
width
The width of this RtfRow (in percent) |
private RtfWriter |
writer
The RtfWriter to which this RtfRow belongs |
Constructor Summary | |
---|---|
RtfRow(RtfWriter writer,
RtfTable mainTable)
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)
Import a Row . |
void |
pregenerateRows(int columns)
Pregenerate the RtfCell s in this RtfRow . |
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. |
private void |
writeBorder(ByteArrayOutputStream os,
byte[] borderType)
|
private void |
writeInt(ByteArrayOutputStream out,
int i)
|
boolean |
writeRow(ByteArrayOutputStream os,
int rowNum,
Table table)
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
private static final byte[] rowBegin
private static final byte[] rowEnd
private static final byte[] rowAutofit
private static final byte[] graphLeft
private static final byte[] rowBorderLeft
private static final byte[] rowBorderRight
private static final byte[] rowBorderTop
private static final byte[] rowBorderBottom
private static final byte[] rowBorderInlineHorizontal
private static final byte[] rowBorderInlineVertical
private static final byte[] rowSpacingLeft
private static final byte[] rowSpacingRight
private static final byte[] rowSpacingTop
private static final byte[] rowSpacingBottom
private static final byte[] rowSpacingLeftStyle
private static final byte[] rowSpacingRightStyle
private static final byte[] rowSpacingTopStyle
private static final byte[] rowSpacingBottomStyle
private static final byte[] rowPaddingLeft
private static final byte[] rowPaddingRight
private static final byte[] rowPaddingLeftStyle
private static final byte[] rowPaddingRightStyle
private static final byte[] rowWidthStyle
private static final byte[] rowWidth
private static final byte[] rowHeader
private static final byte[] rowKeep
private static final byte[] rowAlignLeft
private static final byte[] rowAlignCenter
private static final byte[] rowAlignRight
private ArrayList cells
RtfCell
s in this RtfRow
private RtfWriter writer
RtfWriter
to which this RtfRow
belongs
private RtfTable mainTable
RtfRow
belongs
private int width
RtfRow
(in percent)
private int cellpadding
RtfCells
in this
RtfRow
private int cellspacing
RtfCells
in this
RtfRow
private int borders
RtfRow
private Color borderColor
RtfRow
private float borderWidth
RtfRow
private Row origRow
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
private void writeBorder(ByteArrayOutputStream os, byte[] borderType) throws IOException
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 withprivate void writeInt(ByteArrayOutputStream out, int i) throws IOException
IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |