com.lowagie.text.rtf.table
public class RtfCell extends Cell implements RtfExtendedElement
Version: $Id: RtfCell.java,v 1.18 2006/09/14 23:10:56 xlv Exp $
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 |
int | cellRight
The right margin of this RtfCell |
int | cellWidth
The width of this RtfCell |
int | colspan
The number of columns spanned by 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 |
int | rowspan
The number of rows spanned by this RtfCell |
int | verticalAlignment
The vertical alignment of this RtfCell |
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
| |
RtfCell(Properties properties)
Constructs a RtfCell based upon certain Properties
| |
protected | RtfCell(boolean deleted)
Constructs a deleted RtfCell.
|
protected | RtfCell(RtfDocument doc, RtfRow row, Cell cell)
Constructs a RtfCell based on a Cell.
|
Method Summary | |
---|---|
protected RtfColor | getBackgroundColor()
Get the background color of this RtfCell
|
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 int | getColspan()
Gets the number of columns this RtfCell spans
|
protected int | getRowspan()
Gets the number of rows this RtfCell spans
|
protected int | getVerticalAlignment()
Get the vertical alignment of this RtfCell
|
void | importCell(Cell 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.
|
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
|
byte[] | write()
Write the content of this RtfCell
|
byte[] | writeDefinition()
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: properties The Properties for this RtfCell
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
Returns: The background color of this RtfCell
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 number of columns this RtfCell spans
Returns: The number of rows this RtfCell spans
Returns: The vertical alignment of this RtfCell
Parameters: cell The Cell to import
Parameters: i The integer to convert
Returns: A byte array representing the integer
Returns: True
if this RtfCell is deleted, false
otherwise.
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
Returns: A byte array with the content of this RtfCell
Returns: A byte array with the cell definition