Package com.lowagie.text.rtf
Class RtfRow
- java.lang.Object
-
- com.lowagie.text.rtf.RtfRow
-
public class RtfRow extends java.lang.ObjectDeprecated.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
Fields Modifier and Type Field Description private java.awt.ColorborderColorDeprecated.The border color of thisRtfRowprivate intbordersDeprecated.The borders of thisRtfRowprivate floatborderWidthDeprecated.The border width of thisRtfRowprivate intcellpaddingDeprecated.The default cellpadding ofRtfCellsin thisRtfRowprivate java.util.ArrayListcellsDeprecated.List ofRtfCells in thisRtfRowprivate intcellspacingDeprecated.The default cellspacing ofRtfCellsin thisRtfRowprivate static byte[]graphLeftDeprecated.private RtfTablemainTableDeprecated.TheRtfTable to which this RtfRowbelongsprivate RoworigRowDeprecated.Original Rowprivate static byte[]rowAlignCenterDeprecated.Table alignment centerprivate static byte[]rowAlignLeftDeprecated.Table alignment leftprivate static byte[]rowAlignRightDeprecated.Table alignment rightprivate static byte[]rowAutofitDeprecated.Table row autofitprivate static byte[]rowBeginDeprecated.Table row defaultsprivate static byte[]rowBorderBottomDeprecated.Row border bottomprivate static byte[]rowBorderInlineHorizontalDeprecated.Row border horiz inlineprivate static byte[]rowBorderInlineVerticalDeprecated.Row border bottomprivate static byte[]rowBorderLeftDeprecated.Row border leftprivate static byte[]rowBorderRightDeprecated.Row border rightprivate static byte[]rowBorderTopDeprecated.Row border topprivate static byte[]rowEndDeprecated.End of table rowprivate static byte[]rowHeaderDeprecated.Table row header.private static byte[]rowKeepDeprecated.Table row keep together.private static byte[]rowPaddingLeftDeprecated.Default cell padding leftprivate static byte[]rowPaddingLeftStyleDeprecated.Default cell padding format leftprivate static byte[]rowPaddingRightDeprecated.Default cell padding rightprivate static byte[]rowPaddingRightStyleDeprecated.Default cell padding format rightprivate static byte[]rowSpacingBottomDeprecated.Default cell spacing bottomprivate static byte[]rowSpacingBottomStyleDeprecated.Default cell spacing format bottomprivate static byte[]rowSpacingLeftDeprecated.Default cell spacing leftprivate static byte[]rowSpacingLeftStyleDeprecated.Default cell spacing format leftprivate static byte[]rowSpacingRightDeprecated.Default cell spacing rightprivate static byte[]rowSpacingRightStyleDeprecated.Default cell spacing format rightprivate static byte[]rowSpacingTopDeprecated.Default cell spacing topprivate static byte[]rowSpacingTopStyleDeprecated.Default cell spacing format topprivate static byte[]rowWidthDeprecated.Row widthprivate static byte[]rowWidthStyleDeprecated.Row width formatstatic byte[]tableBorderDeprecated.Table border solidstatic byte[]tableBorderColorDeprecated.Table border colorstatic byte[]tableBorderWidthDeprecated.Table border widthprivate intwidthDeprecated.The width of thisRtfRow(in percent)private RtfWriterwriterDeprecated.TheRtfWriterto which thisRtfRowbelongs
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanimportRow(Row row, float[] propWidths, int tableWidth, int pageWidth, int cellpadding, int cellspacing, int borders, java.awt.Color borderColor, float borderWidth, int y)Deprecated.Import aRow.voidpregenerateRows(int columns)Deprecated.Pregenerate theRtfCells in thisRtfRow.voidsetMerge(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.private voidwriteBorder(java.io.ByteArrayOutputStream os, byte[] borderType)Deprecated.private voidwriteInt(java.io.ByteArrayOutputStream out, int i)Deprecated.booleanwriteRow(java.io.ByteArrayOutputStream os, int rowNum, Table table)Deprecated.Write theRtfRowto the specifiedOutputStream.
-
-
-
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
-
rowBegin
private static final byte[] rowBegin
Deprecated.Table row defaults
-
rowEnd
private static final byte[] rowEnd
Deprecated.End of table row
-
rowAutofit
private static final byte[] rowAutofit
Deprecated.Table row autofit
-
graphLeft
private static final byte[] graphLeft
Deprecated.
-
rowBorderLeft
private static final byte[] rowBorderLeft
Deprecated.Row border left
-
rowBorderRight
private static final byte[] rowBorderRight
Deprecated.Row border right
-
rowBorderTop
private static final byte[] rowBorderTop
Deprecated.Row border top
-
rowBorderBottom
private static final byte[] rowBorderBottom
Deprecated.Row border bottom
-
rowBorderInlineHorizontal
private static final byte[] rowBorderInlineHorizontal
Deprecated.Row border horiz inline
-
rowBorderInlineVertical
private static final byte[] rowBorderInlineVertical
Deprecated.Row border bottom
-
rowSpacingLeft
private static final byte[] rowSpacingLeft
Deprecated.Default cell spacing left
-
rowSpacingRight
private static final byte[] rowSpacingRight
Deprecated.Default cell spacing right
-
rowSpacingTop
private static final byte[] rowSpacingTop
Deprecated.Default cell spacing top
-
rowSpacingBottom
private static final byte[] rowSpacingBottom
Deprecated.Default cell spacing bottom
-
rowSpacingLeftStyle
private static final byte[] rowSpacingLeftStyle
Deprecated.Default cell spacing format left
-
rowSpacingRightStyle
private static final byte[] rowSpacingRightStyle
Deprecated.Default cell spacing format right
-
rowSpacingTopStyle
private static final byte[] rowSpacingTopStyle
Deprecated.Default cell spacing format top
-
rowSpacingBottomStyle
private static final byte[] rowSpacingBottomStyle
Deprecated.Default cell spacing format bottom
-
rowPaddingLeft
private static final byte[] rowPaddingLeft
Deprecated.Default cell padding left
-
rowPaddingRight
private static final byte[] rowPaddingRight
Deprecated.Default cell padding right
-
rowPaddingLeftStyle
private static final byte[] rowPaddingLeftStyle
Deprecated.Default cell padding format left
-
rowPaddingRightStyle
private static final byte[] rowPaddingRightStyle
Deprecated.Default cell padding format right
-
rowWidthStyle
private static final byte[] rowWidthStyle
Deprecated.Row width format
-
rowWidth
private static final byte[] rowWidth
Deprecated.Row width
-
rowHeader
private static final byte[] rowHeader
Deprecated.Table row header. This row should appear at the top of every page the current table appears on.
-
rowKeep
private static final byte[] rowKeep
Deprecated.Table row keep together. This row cannot be split by a page break. This property is assumed to be off unless the control word is present.
-
rowAlignLeft
private static final byte[] rowAlignLeft
Deprecated.Table alignment left
-
rowAlignCenter
private static final byte[] rowAlignCenter
Deprecated.Table alignment center
-
rowAlignRight
private static final byte[] rowAlignRight
Deprecated.Table alignment right
-
cells
private java.util.ArrayList cells
Deprecated.List ofRtfCells in thisRtfRow
-
writer
private RtfWriter writer
Deprecated.TheRtfWriterto which thisRtfRowbelongs
-
mainTable
private RtfTable mainTable
Deprecated.TheRtfTable to which this RtfRowbelongs
-
width
private int width
Deprecated.The width of thisRtfRow(in percent)
-
cellpadding
private int cellpadding
Deprecated.The default cellpadding ofRtfCellsin thisRtfRow
-
cellspacing
private int cellspacing
Deprecated.The default cellspacing ofRtfCellsin thisRtfRow
-
borders
private int borders
Deprecated.The borders of thisRtfRow
-
borderColor
private java.awt.Color borderColor
Deprecated.The border color of thisRtfRow
-
borderWidth
private float borderWidth
Deprecated.The border width of thisRtfRow
-
origRow
private Row origRow
Deprecated.Original Row
-
-
Method Detail
-
pregenerateRows
public void pregenerateRows(int columns)
Deprecated.Pregenerate theRtfCells in thisRtfRow.- Parameters:
columns- The number ofRtfCells to be generated.
-
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)
Deprecated.Import aRow.All the parameters are taken from the
RtfTablewhich contains thisRtfRowand they do exactely what they say- Parameters:
row-propWidths- in percenttableWidth- in percentpageWidth-cellpadding-cellspacing-borders-borderColor-borderWidth-y-- Returns:
- true if importing the row succeeded
-
writeRow
public boolean writeRow(java.io.ByteArrayOutputStream os, int rowNum, Table table) throws DocumentException, java.io.IOExceptionDeprecated.Write theRtfRowto the specifiedOutputStream.- Parameters:
os- TheOutputStreamto which thisRtfRowshould be written to.rowNum- Theindexof this row in the containing table.table- TheTablewhich contains the originalRow.- Returns:
- true if writing the row succeeded
- Throws:
DocumentExceptionjava.io.IOException
-
writeBorder
private void writeBorder(java.io.ByteArrayOutputStream os, byte[] borderType) throws java.io.IOExceptionDeprecated.- Throws:
java.io.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 mergedmergeType- The merge type specifies the kind of merge to be applied (MERGE_HORIZ_PREV, MERGE_VERT_PREV, MERGE_BOTH_PREV)mergeCell- TheRtfCellthat the cell at x and y is to be merged with
-
writeInt
private void writeInt(java.io.ByteArrayOutputStream out, int i) throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
-