com.lowagie.text.rtf
Class RtfCell

java.lang.Object
  extended by 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
 
Constructor Summary
RtfCell(RtfWriter writer, RtfTable mainTable)
          Deprecated. Create a new RtfCell.
 
Method Summary
 int getCellRight()
          Deprecated. Get the position of the right border of this RtfCell.
 int getCellWidth()
          Deprecated. Get the with of this RtfCell
 Cell getStore()
          Deprecated. Get the Cell with the actual content.
 int importCell(Cell cell, int cellLeft, int cellWidth, int x, int y, int cellpadding)
          Deprecated. Import a Cell.
 void setCellRight(int value)
          Deprecated. Sets the right position of the cell
 void setCellWidth(int value)
          Deprecated. sets the width of the cell
 void setMerge(int mergeType, RtfCell mergeCell)
          Deprecated. Sets the merge type and the RtfCell with which this RtfCell is to be merged.
 boolean writeCellContent(ByteArrayOutputStream os)
          Deprecated. Write the content of the RtfCell.
 boolean writeCellSettings(ByteArrayOutputStream os)
          Deprecated. Write the properties of the RtfCell.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cellInTable

protected static final byte[] cellInTable
Deprecated. 
Cell is part of table

Constructor Detail

RtfCell

public RtfCell(RtfWriter writer,
               RtfTable mainTable)
Deprecated. 
Create a new RtfCell.

Parameters:
writer - The RtfWriter that this RtfCell belongs to
mainTable - The RtfTable that created the RtfRow that created the RtfCell :-)
Method Detail

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 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

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.