com.lowagie.text.rtf
public class RtfRow extends Object
Deprecated: Please move to the RtfWriter2 and associated classes.
A Helper Class for theRtfWriter.
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 | |
|---|---|
| Color | borderColor The border color of this RtfRow |
| int | borders The borders of this RtfRow |
| float | borderWidth The border width of this RtfRow |
| int | cellpadding The default cellpadding of RtfCells in this
RtfRow |
| ArrayList | cells List of RtfCells in this RtfRow |
| int | cellspacing The default cellspacing of RtfCells in this
RtfRow |
| static byte[] | graphLeft |
| RtfTable | mainTable The RtfRow belongs |
| Row | origRow Original Row |
| static byte[] | rowAlignCenter Table alignment center |
| static byte[] | rowAlignLeft Table alignment left |
| static byte[] | rowAlignRight Table alignment right |
| static byte[] | rowAutofit Table row autofit |
| static byte[] | rowBegin Table row defaults |
| static byte[] | rowBorderBottom Row border bottom |
| static byte[] | rowBorderInlineHorizontal Row border horiz inline |
| static byte[] | rowBorderInlineVertical Row border bottom |
| static byte[] | rowBorderLeft Row border left |
| static byte[] | rowBorderRight Row border right |
| static byte[] | rowBorderTop Row border top |
| static byte[] | rowEnd End of table row |
| static byte[] | rowHeader
Table row header. |
| static byte[] | rowKeep
Table row keep together. |
| static byte[] | rowPaddingLeft Default cell padding left |
| static byte[] | rowPaddingLeftStyle Default cell padding format left |
| static byte[] | rowPaddingRight Default cell padding right |
| static byte[] | rowPaddingRightStyle Default cell padding format right |
| static byte[] | rowSpacingBottom Default cell spacing bottom |
| static byte[] | rowSpacingBottomStyle Default cell spacing format bottom |
| static byte[] | rowSpacingLeft Default cell spacing left |
| static byte[] | rowSpacingLeftStyle Default cell spacing format left |
| static byte[] | rowSpacingRight Default cell spacing right |
| static byte[] | rowSpacingRightStyle Default cell spacing format right |
| static byte[] | rowSpacingTop Default cell spacing top |
| static byte[] | rowSpacingTopStyle Default cell spacing format top |
| static byte[] | rowWidth Row width |
| static byte[] | rowWidthStyle Row width format |
| static byte[] | tableBorder Table border solid |
| static byte[] | tableBorderColor Table border color |
| static byte[] | tableBorderWidth Table border width |
| int | width The width of this RtfRow (in percent) |
| 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 RtfCells in this RtfRow.
|
| void | setMerge(int x, int mergeType, RtfCell mergeCell)RtfTables call this method from their own setMerge() to
specify that a certain other cell is to be merged with it.
|
| void | writeBorder(ByteArrayOutputStream os, byte[] borderType) |
| void | writeInt(ByteArrayOutputStream out, int i) |
| boolean | writeRow(ByteArrayOutputStream os, int rowNum, Table table)
Write the RtfRow to the specified OutputStream.
|
RtfRowRtfRowRtfRowRtfCells in this
RtfRowRtfCells in this RtfRowRtfCells in this
RtfRowRtfRow belongsRtfRow (in percent)RtfWriter to which this RtfRow belongsRtfRow.
Parameters: writer The RtfWriter that this RtfRow belongs to mainTable The RtfTable that created this
RtfRow
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
RtfCells in this RtfRow.
Parameters: columns The number of RtfCells to be generated.
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
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