com.lowagie.text.rtf
public class RtfCell extends Object
Deprecated: 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. Updates by Benoit Wiart
Field Summary | |
---|---|
static byte[] | cellBackgroundColor Cell background color |
static byte[] | cellBorderBottom Cell border bottom |
static byte[] | cellBorderLeft Cell border left |
static byte[] | cellBorderRight Cell border right |
static byte[] | cellBorderTop Cell border top |
static byte[] | cellEnd End of cell |
protected static byte[] | cellInTable Cell is part of table |
static byte[] | cellMergeFirst First cell to merge with - Horizontal |
static byte[] | cellMergePrev Merge cell with previous horizontal cell |
int | cellpadding cell padding, because the table only renders the left and right cell padding
and not the top and bottom one |
static byte[] | cellPaddingBottom padding bottom |
static byte[] | cellPaddingBottomUnit padding bottom unit |
static byte[] | cellPaddingLeft padding left |
static byte[] | cellPaddingLeftUnit padding left unit |
static byte[] | cellPaddingRight padding right |
static byte[] | cellPaddingRightUnit padding right unit |
static byte[] | cellPaddingTop padding top |
static byte[] | cellPaddingTopUnit padding top unit |
int | cellRight Cell right border position |
static byte[] | cellRightBorder Cell right border position |
static byte[] | cellVerticalAlignBottom Cell content vertical alignment bottom |
static byte[] | cellVerticalAlignCenter Cell content vertical alignment center |
static byte[] | cellVerticalAlignTop Cell content vertical alignment top |
static byte[] | cellVMergeFirst First cell to merge with - Vertical |
static byte[] | cellVMergePrev Merge cell with previous vertical cell |
int | cellWidth Cell width |
static byte[] | cellWidthStyle Cell width format |
static byte[] | cellWidthTag Cell width |
boolean | emptyCell Is this an empty cell |
RtfTable | mainTable The RtfTable to which this RtfCell belongs. |
int | mergeType Type of merging to do |
static int | MERGE_BOTH_FIRST A possible value for merging |
static int | MERGE_BOTH_PREV A possible value for merging |
static int | MERGE_HORIZ_FIRST A possible value for merging |
static int | MERGE_HORIZ_PREV A possible value for merging |
static int | MERGE_VERT_FIRST A possible value for merging |
static int | MERGE_VERT_PREV A possible value for merging |
Cell | storeCell containing the actual data |
RtfWriter | writer The RtfWriter to which this RtfCell belongs. |
Constructor Summary | |
---|---|
RtfCell(RtfWriter writer, RtfTable mainTable)
Create a new RtfCell .
|
Method Summary | |
---|---|
int | getCellRight()
Get the position of the right border of this RtfCell . |
int | getCellWidth()
Get the with of this RtfCell
|
Cell | getStore()
Get the Cell with the actual content.
|
int | importCell(Cell cell, int cellLeft, int cellWidth, int x, int y, int cellpadding)
Import a Cell .
|
void | setCellRight(int value)
Sets the right position of the cell |
void | setCellWidth(int value)
sets the width of the cell |
void | setMerge(int mergeType, RtfCell mergeCell)
Sets the merge type and the RtfCell with which this
RtfCell is to be merged.
|
boolean | writeCellContent(ByteArrayOutputStream os)
Write the content of the RtfCell .
|
boolean | writeCellSettings(ByteArrayOutputStream os)
Write the properties of the RtfCell .
|
void | writeInt(ByteArrayOutputStream out, int i)
Write an Integer to the Outputstream.
|
RtfTable
to which this RtfCell
belongs.Cell
containing the actual dataRtfWriter
to which this RtfCell
belongs.RtfCell
.
Parameters: writer The RtfWriter
that this RtfCell
belongs to mainTable The RtfTable
that created the
RtfRow
that created the RtfCell
:-)
RtfCell
.Returns: position of the right border
RtfCell
Returns: Width of the current RtfCell
Cell
with the actual content.
Returns: Cell
which is contained in the RtfCell
Cell
.
Parameters: cell The Cell
containing the data for this
RtfCell
cellLeft The position of the left border cellWidth The default width of a cell x The column index of this RtfCell
y The row index of this RtfCell
cellpadding the cellpadding
Returns: the position of the right side of the cell
Parameters: value a cell position
Parameters: value a width
RtfCell
with which this
RtfCell
is 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) mergeCell The RtfCell
that the cell at x and y is to
be merged with
RtfCell
.
Parameters: os The OutputStream
to which to write the content of
the RtfCell
to.
Returns: true if writing the cell content succeeded
Throws: DocumentException
RtfCell
.
Parameters: os The OutputStream
to which to write the properties
of the RtfCell
to.
Returns: true if writing the cell settings succeeded
Throws: DocumentException
Parameters: out The OutputStream
to be written to. i The int to be written.
Throws: IOException