| java.lang.Object com.lowagie.text.rtf.RtfCell
RtfCell | public class RtfCell (Code) | | 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
|
Method Summary | |
public int | getCellRight() Get the position of the right border of this RtfCell . | public int | getCellWidth() | public Cell | getStore() Get the Cell with the actual content. | public int | importCell(Cell cell, int cellLeft, int cellWidth, int x, int y, int cellpadding) Import a Cell . | public void | setCellRight(int value) | public void | setCellWidth(int value) | public void | setMerge(int mergeType, RtfCell mergeCell) Sets the merge type and the RtfCell with which this
RtfCell is to be merged. | public boolean | writeCellContent(ByteArrayOutputStream os) Write the content of the RtfCell .
Parameters: os - The OutputStream to which to write the content ofthe RtfCell to. | public boolean | writeCellSettings(ByteArrayOutputStream os) Write the properties of the RtfCell .
Parameters: os - The OutputStream to which to write the propertiesof the RtfCell to. |
cellInTable | final protected static byte[] cellInTable(Code) | | Cell is part of table
|
RtfCell | public RtfCell(RtfWriter writer, RtfTable mainTable)(Code) | | Create a new RtfCell .
Parameters: writer - The RtfWriter that this RtfCell belongs to Parameters: mainTable - The RtfTable that created theRtfRow that created the RtfCell :-) |
getCellRight | public int getCellRight()(Code) | | Get the position of the right border of this RtfCell .
position of the right border |
getCellWidth | public int getCellWidth()(Code) | | Get the with of this RtfCell
Width of the current RtfCell |
getStore | public Cell getStore()(Code) | | Get the Cell with the actual content.
Cell which is contained in the RtfCell |
importCell | public int importCell(Cell cell, int cellLeft, int cellWidth, int x, int y, int cellpadding)(Code) | | Import a Cell .
Parameters: cell - The Cell containing the data for thisRtfCell Parameters: cellLeft - The position of the left border Parameters: cellWidth - The default width of a cell Parameters: x - The column index of this RtfCell Parameters: y - The row index of this RtfCell Parameters: cellpadding - the cellpadding the position of the right side of the cell |
setCellRight | public void setCellRight(int value)(Code) | | Sets the right position of the cell
Parameters: value - a cell position |
setCellWidth | public void setCellWidth(int value)(Code) | | sets the width of the cell
Parameters: value - a width |
setMerge | public void setMerge(int mergeType, RtfCell mergeCell)(Code) | | 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) Parameters: mergeCell - The RtfCell that the cell at x and y is tobe merged with |
writeCellSettings | public boolean writeCellSettings(ByteArrayOutputStream os)(Code) | | Write the properties of the RtfCell .
Parameters: os - The OutputStream to which to write the propertiesof the RtfCell to. true if writing the cell settings succeeded throws: DocumentException - |
|
|