Package com.lowagie.text.rtf.table
Class RtfRow
java.lang.Object
com.lowagie.text.rtf.RtfElement
com.lowagie.text.rtf.table.RtfRow
- All Implemented Interfaces:
RtfBasicElement
,com.lowagie.text.RtfElementInterface
The RtfRow wraps one Row for a RtfTable.
INTERNAL USE ONLY
- Version:
- $Id: RtfRow.java 3735 2009-02-26 01:44:03Z xlv $
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe cells of this RtfRowprivate final RtfTable
The RtfTable this RtfRow belongs toprivate static final byte[]
Constant for center alignment of this RtfRowprivate static final byte[]
Constant for justified alignment of this RtfRowprivate static final byte[]
Constant for left alignment of this RtfRowprivate static final byte[]
Constant for right alignment of this RtfRowprivate static final byte[]
Constant for the RtfRow beginningprivate static final byte[]
Constant for the cell left paddingprivate static final byte[]
Constant for the cell left padding styleprivate static final byte[]
Constant for the cell right paddingprivate static final byte[]
Constant for the cell right padding styleprivate static final byte[]
Constant for the cell bottom spacingprivate static final byte[]
Constant for the cell bottom spacing styleprivate static final byte[]
Constant for the cell left spacingprivate static final byte[]
Constant for the cell left spacing styleprivate static final byte[]
Constant for the cell right spacingprivate static final byte[]
Constant for the cell right spacing styleprivate static final byte[]
Constant for the cell top spacingprivate static final byte[]
Constant for the cell top spacing styleprivate static final byte[]
Constant for the end of a rowprivate static final byte[]
Constant for the graph style of this RtfRowprivate static final byte[]
Constant to specify that this is a header RtfRowprivate static final byte[]
Constant to specify that this RtfRow are not to be broken across pagesprivate static final byte[]
Constant for the RtfRow widthprivate static final byte[]
Constant for the RtfRow width styleprivate final int
The row numberprivate int
The width of this rowFields inherited from class com.lowagie.text.rtf.RtfElement
document, inHeader, inTable
Fields inherited from interface com.lowagie.text.rtf.RtfBasicElement
CLOSE_GROUP, COMMA_DELIMITER, DELIMITER, OPEN_GROUP, TWIPS_FACTOR
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
RtfRow
(RtfDocument doc, RtfTable rtfTable, com.lowagie.text.pdf.PdfPRow row, int rowNumber) Constructs a RtfRow for a Row.protected
RtfRow
(RtfDocument doc, RtfTable rtfTable, com.lowagie.text.Row row, int rowNumber) Constructs a RtfRow for a Row. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
cleanRow()
Cleans the deleted RtfCells from the total RtfCells.getCells()
Gets the cells of this RtfRowprotected RtfTable
Gets the parent RtfTable of this RtfRowprotected void
Performs a second pass over all cells to handle cell row/column spanning.private void
importRow
(com.lowagie.text.pdf.PdfPRow row) Imports a PdfPRow and copies all settingsprivate void
importRow
(com.lowagie.text.Row row) Imports a Row and copies all settingsvoid
writeContent
(OutputStream result) Writes the content of this RtfRowprivate void
writeRowDefinition
(OutputStream result) Writes the row definition/settings.Methods inherited from class com.lowagie.text.rtf.RtfElement
intToByteArray, isInTable, setInHeader, setInTable, setRtfDocument
-
Field Details
-
ROW_BEGIN
private static final byte[] ROW_BEGINConstant for the RtfRow beginning -
ROW_WIDTH_STYLE
private static final byte[] ROW_WIDTH_STYLEConstant for the RtfRow width style -
ROW_WIDTH
private static final byte[] ROW_WIDTHConstant for the RtfRow width -
ROW_KEEP_TOGETHER
private static final byte[] ROW_KEEP_TOGETHERConstant to specify that this RtfRow are not to be broken across pages -
ROW_HEADER_ROW
private static final byte[] ROW_HEADER_ROWConstant to specify that this is a header RtfRow -
ROW_ALIGN_LEFT
private static final byte[] ROW_ALIGN_LEFTConstant for left alignment of this RtfRow -
ROW_ALIGN_RIGHT
private static final byte[] ROW_ALIGN_RIGHTConstant for right alignment of this RtfRow -
ROW_ALIGN_CENTER
private static final byte[] ROW_ALIGN_CENTERConstant for center alignment of this RtfRow -
ROW_ALIGN_JUSTIFIED
private static final byte[] ROW_ALIGN_JUSTIFIEDConstant for justified alignment of this RtfRow -
ROW_GRAPH
private static final byte[] ROW_GRAPHConstant for the graph style of this RtfRow -
ROW_CELL_SPACING_LEFT
private static final byte[] ROW_CELL_SPACING_LEFTConstant for the cell left spacing -
ROW_CELL_SPACING_TOP
private static final byte[] ROW_CELL_SPACING_TOPConstant for the cell top spacing -
ROW_CELL_SPACING_RIGHT
private static final byte[] ROW_CELL_SPACING_RIGHTConstant for the cell right spacing -
ROW_CELL_SPACING_BOTTOM
private static final byte[] ROW_CELL_SPACING_BOTTOMConstant for the cell bottom spacing -
ROW_CELL_SPACING_LEFT_STYLE
private static final byte[] ROW_CELL_SPACING_LEFT_STYLEConstant for the cell left spacing style -
ROW_CELL_SPACING_TOP_STYLE
private static final byte[] ROW_CELL_SPACING_TOP_STYLEConstant for the cell top spacing style -
ROW_CELL_SPACING_RIGHT_STYLE
private static final byte[] ROW_CELL_SPACING_RIGHT_STYLEConstant for the cell right spacing style -
ROW_CELL_SPACING_BOTTOM_STYLE
private static final byte[] ROW_CELL_SPACING_BOTTOM_STYLEConstant for the cell bottom spacing style -
ROW_CELL_PADDING_LEFT
private static final byte[] ROW_CELL_PADDING_LEFTConstant for the cell left padding -
ROW_CELL_PADDING_RIGHT
private static final byte[] ROW_CELL_PADDING_RIGHTConstant for the cell right padding -
ROW_CELL_PADDING_LEFT_STYLE
private static final byte[] ROW_CELL_PADDING_LEFT_STYLEConstant for the cell left padding style -
ROW_CELL_PADDING_RIGHT_STYLE
private static final byte[] ROW_CELL_PADDING_RIGHT_STYLEConstant for the cell right padding style -
ROW_END
private static final byte[] ROW_ENDConstant for the end of a row -
parentTable
The RtfTable this RtfRow belongs to -
cells
The cells of this RtfRow -
width
private int widthThe width of this row -
rowNumber
private final int rowNumberThe row number
-
-
Constructor Details
-
RtfRow
Constructs a RtfRow for a Row.- Parameters:
doc
- The RtfDocument this RtfRow belongs tortfTable
- The RtfTable this RtfRow belongs torow
- The Row this RtfRow is based onrowNumber
- The number of this row
-
RtfRow
protected RtfRow(RtfDocument doc, RtfTable rtfTable, com.lowagie.text.pdf.PdfPRow row, int rowNumber) Constructs a RtfRow for a Row.- Parameters:
doc
- The RtfDocument this RtfRow belongs tortfTable
- The RtfTable this RtfRow belongs torow
- The Row this RtfRow is based onrowNumber
- The number of this row- Since:
- 2.1.3
-
-
Method Details
-
importRow
private void importRow(com.lowagie.text.Row row) Imports a Row and copies all settings- Parameters:
row
- The Row to import
-
importRow
private void importRow(com.lowagie.text.pdf.PdfPRow row) Imports a PdfPRow and copies all settings- Parameters:
row
- The PdfPRow to import- Since:
- 2.1.3
-
handleCellSpanning
protected void handleCellSpanning()Performs a second pass over all cells to handle cell row/column spanning. -
cleanRow
protected void cleanRow()Cleans the deleted RtfCells from the total RtfCells. -
writeRowDefinition
Writes the row definition/settings.- Parameters:
result
- TheOutputStream
to write the definitions to.- Throws:
IOException
-
writeContent
Writes the content of this RtfRow- Specified by:
writeContent
in interfaceRtfBasicElement
- Specified by:
writeContent
in classRtfElement
- Parameters:
result
- TheOutputStream
to write the content to- Throws:
IOException
-
getParentTable
Gets the parent RtfTable of this RtfRow- Returns:
- The parent RtfTable of this RtfRow
-
getCells
Gets the cells of this RtfRow- Returns:
- The cells of this RtfRow
-