com.lowagie.text.rtf
Class RtfCell
java.lang.Object
com.lowagie.text.rtf.RtfCell
Deprecated. Please move to the RtfWriter2 and associated classes.
public class RtfCell
- extends Object
A Helper Class for the RtfWriter
.
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 |
protected static byte[] |
cellInTable
Deprecated. Cell is part of table |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cellInTable
protected static final byte[] cellInTable
- Deprecated.
- Cell is part of table
RtfCell
public RtfCell(RtfWriter writer,
RtfTable mainTable)
- Deprecated.
- Create a new
RtfCell
.
- Parameters:
writer
- The RtfWriter
that this RtfCell
belongs tomainTable
- The RtfTable
that created the
RtfRow
that created the RtfCell
:-)
importCell
public int importCell(Cell cell,
int cellLeft,
int cellWidth,
int x,
int y,
int cellpadding)
- Deprecated.
- Import a
Cell
.
- Parameters:
cell
- The Cell
containing the data for this
RtfCell
cellLeft
- The position of the left bordercellWidth
- The default width of a cellx
- 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
writeCellSettings
public boolean writeCellSettings(ByteArrayOutputStream os)
throws DocumentException
- Deprecated.
- Write the properties of the
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
writeCellContent
public boolean writeCellContent(ByteArrayOutputStream os)
throws DocumentException
- Deprecated.
- Write the content of the
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
setMerge
public void setMerge(int mergeType,
RtfCell mergeCell)
- Deprecated.
- Sets the merge type and the
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
getStore
public Cell getStore()
- Deprecated.
- Get the
Cell
with the actual content.
- Returns:
Cell
which is contained in the RtfCell
getCellWidth
public int getCellWidth()
- Deprecated.
- Get the with of this
RtfCell
- Returns:
- Width of the current
RtfCell
setCellWidth
public void setCellWidth(int value)
- Deprecated.
- sets the width of the cell
- Parameters:
value
- a width
getCellRight
public int getCellRight()
- Deprecated.
- Get the position of the right border of this
RtfCell
.
- Returns:
- position of the right border
setCellRight
public void setCellRight(int value)
- Deprecated.
- Sets the right position of the cell
- Parameters:
value
- a cell position
Copyright © 2006-2007 EGIZ - E-Government Innovationszentrum. All Rights Reserved.