com.lowagie.text.rtf.table
public class RtfCell extends Cell implements RtfExtendedElement
Version: $Id: RtfCell.java 3535 2008-07-07 23:22:24Z xlv $
See Also: RtfBorder
| Field Summary | |
|---|---|
| RtfColor | backgroundColor
The background color of this RtfCell |
| RtfBorderGroup | borders
The borders of this RtfCell |
| int | cellPadding
The padding of this RtfCell |
| float | cellPaddingBottom |
| float | cellPaddingLeft |
| float | cellPaddingRight |
| float | cellPaddingTop |
| int | cellRight
The right margin of this RtfCell |
| int | cellWidth
The width of this RtfCell |
| ArrayList | content
The content of this RtfCell |
| boolean | deleted
Whether this RtfCell is a placeholder for a removed table cell. |
| RtfDocument | document
The RtfDocument this RtfCell belongs to |
| boolean | inHeader
Whether this RtfCell is in a header |
| int | mergeType
The merge type of this RtfCell |
| static int | MERGE_NONE
This cell is not merged |
| static int | MERGE_VERT_CHILD
This cell is a child cell of a vertical merge operation |
| static int | MERGE_VERT_PARENT
This cell is the parent cell of a vertical merge operation |
| RtfRow | parentRow
The parent RtfRow of this RtfCell |
| boolean | usePadding
Whether to use generic padding or individual
padding values (cellPaddingLeft, cellPaddingTop, cellPaddingBottom, cellPaddingRight) |
| Constructor Summary | |
|---|---|
| RtfCell()
Constructs an empty RtfCell | |
| RtfCell(String content)
Constructs a RtfCell based upon a String
| |
| RtfCell(Element element)
Constructs a RtfCell based upon an Element
| |
| protected | RtfCell(boolean deleted)
Constructs a deleted RtfCell.
|
| protected | RtfCell(RtfDocument doc, RtfRow row, Cell cell)
Constructs a RtfCell based on a Cell.
|
| protected | RtfCell(RtfDocument doc, RtfRow row, PdfPCell cell)
Constructs a RtfCell based on a Cell.
|
| Method Summary | |
|---|---|
| protected RtfBorderGroup | getBorders()
Gets the borders of this RtfCell
|
| protected int | getCellpadding()
Gets the cell padding of this RtfCell
|
| protected int | getCellRight()
Gets the right margin of this RtfCell
|
| protected int | getCellWidth()
Gets the cell width of this RtfCell
|
| protected RtfColor | getRtfBackgroundColor()
Get the background color of this RtfCell
|
| void | importCell(Cell cell)
Imports the Cell properties into the RtfCell
|
| void | importCell(PdfPCell cell)
Imports the Cell properties into the RtfCell
|
| byte[] | intToByteArray(int i)
Transforms an integer into its String representation and then returns the bytes
of that string.
|
| boolean | isDeleted()
Checks whether this RtfCell is a placeholder for
a table cell that has been removed due to col/row spanning.
|
| boolean | isInHeader()
Gets whether this RtfCell is in a header
|
| void | setBorders(RtfBorderGroup borderGroup)
Set the borders of this RtfCell
|
| protected void | setCellMergeChild(RtfCell mergeParent)
Merge this cell into the parent cell.
|
| protected void | setCellRight(int cellRight)
Sets the right margin of this cell. |
| protected void | setCellWidth(int cellWidth)
Sets the cell width of this RtfCell. |
| void | setInHeader(boolean inHeader)
Sets whether this RtfCell is in a header
|
| void | setInTable(boolean inTable)
Unused |
| void | setRtfDocument(RtfDocument doc)
Sets the RtfDocument this RtfCell belongs to
|
| void | writeContent(OutputStream result)
Write the content of this RtfCell |
| void | writeDefinition(OutputStream result)
Write the cell definition part of this RtfCell |
Parameters: content The String to base the RtfCell on
Parameters: element The Element to base the RtfCell on
Throws: BadElementException If the Element is not valid
Parameters: deleted Whether this RtfCell is actually deleted.
Parameters: doc The RtfDocument this RtfCell belongs to row The RtfRow this RtfCell lies in cell The Cell to base this RtfCell on
Parameters: doc The RtfDocument this RtfCell belongs to row The RtfRow this RtfCell lies in cell The PdfPCell to base this RtfCell on
Since: 2.1.3
Returns: The borders of this RtfCell
Returns: The cell padding of this RtfCell
Returns: The right margin of this RtfCell.
Returns: The cell width of this RtfCell
Returns: The background color of this RtfCell
Parameters: cell The Cell to import
Parameters: cell The PdfPCell to import
Since: 2.1.3
Parameters: i The integer to convert
Returns: A byte array representing the integer
Returns: True if this RtfCell is deleted, false otherwise.
RtfCell is in a header
Returns: True if this RtfCell is in a header, false otherwise
Since: 2.1.0
Parameters: borderGroup The RtfBorderGroup to use as borders
Parameters: mergeParent The RtfCell to merge with
Parameters: cellRight The right margin to use
Parameters: cellWidth The cell width to use
Parameters: inHeader True if this RtfCell is in a header, false otherwise
Parameters: inTable
Parameters: doc The RtfDocument to use