| java.lang.Object com.lowagie.text.rtf.RtfRow
RtfRow | public class RtfRow (Code) | | 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
|
Method Summary | |
public boolean | importRow(Row row, float[] propWidths, int tableWidth, int pageWidth, int cellpadding, int cellspacing, int borders, java.awt.Color borderColor, float borderWidth, int y) Import a Row . | public void | pregenerateRows(int columns) Pregenerate the RtfCell s in this RtfRow . | 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. | public boolean | writeRow(ByteArrayOutputStream os, int rowNum, Table table) Write the RtfRow to the specified OutputStream .
Parameters: os - The OutputStream to which this RtfRow should be written to. Parameters: rowNum - The index of this row in the containing table. Parameters: table - The Table which contains the original Row . |
tableBorder | final public static byte[] tableBorder(Code) | | Table border solid
|
tableBorderColor | final public static byte[] tableBorderColor(Code) | | Table border color
|
tableBorderWidth | final public static byte[] tableBorderWidth(Code) | | Table border width
|
RtfRow | public RtfRow(RtfWriter writer, RtfTable mainTable)(Code) | | Create a new RtfRow .
Parameters: writer - The RtfWriter that this RtfRow belongs to Parameters: mainTable - The RtfTable that created thisRtfRow |
importRow | public boolean importRow(Row row, float[] propWidths, int tableWidth, int pageWidth, int cellpadding, int cellspacing, int borders, java.awt.Color borderColor, float borderWidth, int y)(Code) | | Import a Row .
All the parameters are taken from the RtfTable which contains
this RtfRow and they do exactely what they say
Parameters: row - Parameters: propWidths - in percent Parameters: tableWidth - in percent Parameters: pageWidth - Parameters: cellpadding - Parameters: cellspacing - Parameters: borders - Parameters: borderColor - Parameters: borderWidth - Parameters: y - true if importing the row succeeded |
pregenerateRows | public void pregenerateRows(int columns)(Code) | | Pregenerate the RtfCell s in this RtfRow .
Parameters: columns - The number of RtfCell s to be generated. |
setMerge | public void setMerge(int x, int mergeType, RtfCell mergeCell)(Code) | | RtfTable s 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 Parameters: mergeType - The merge type specifies the kind of merge to be applied(MERGE_HORIZ_PREV, MERGE_VERT_PREV, MERGE_BOTH_PREV) Parameters: mergeCell - The RtfCell that the cell at x and y is tobe merged with |
writeRow | public boolean writeRow(ByteArrayOutputStream os, int rowNum, Table table) throws DocumentException, IOException(Code) | | Write the RtfRow to the specified OutputStream .
Parameters: os - The OutputStream to which this RtfRow should be written to. Parameters: rowNum - The index of this row in the containing table. Parameters: table - The Table which contains the original Row . true if writing the row succeeded throws: DocumentException - throws: IOException - |
|
|