Package com.lowagie.text.rtf
Class RtfCell
- java.lang.Object
-
- com.lowagie.text.rtf.RtfCell
-
public class RtfCell extends java.lang.ObjectDeprecated.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
Fields Modifier and Type Field Description private static byte[]cellBackgroundColorDeprecated.Cell background colorprivate static byte[]cellBorderBottomDeprecated.Cell border bottomprivate static byte[]cellBorderLeftDeprecated.Cell border leftprivate static byte[]cellBorderRightDeprecated.Cell border rightprivate static byte[]cellBorderTopDeprecated.Cell border topprivate static byte[]cellEndDeprecated.End of cellprotected static byte[]cellInTableDeprecated.Cell is part of tableprivate static byte[]cellMergeFirstDeprecated.First cell to merge with - Horizontalprivate static byte[]cellMergePrevDeprecated.Merge cell with previous horizontal cellprivate intcellpaddingDeprecated.cell padding, because the table only renders the left and right cell padding and not the top and bottom oneprivate static byte[]cellPaddingBottomDeprecated.padding bottomprivate static byte[]cellPaddingBottomUnitDeprecated.padding bottom unitprivate static byte[]cellPaddingLeftDeprecated.padding leftprivate static byte[]cellPaddingLeftUnitDeprecated.padding left unitprivate static byte[]cellPaddingRightDeprecated.padding rightprivate static byte[]cellPaddingRightUnitDeprecated.padding right unitprivate static byte[]cellPaddingTopDeprecated.padding topprivate static byte[]cellPaddingTopUnitDeprecated.padding top unitprivate intcellRightDeprecated.Cell right border positionprivate static byte[]cellRightBorderDeprecated.Cell right border positionprivate static byte[]cellVerticalAlignBottomDeprecated.Cell content vertical alignment bottomprivate static byte[]cellVerticalAlignCenterDeprecated.Cell content vertical alignment centerprivate static byte[]cellVerticalAlignTopDeprecated.Cell content vertical alignment topprivate static byte[]cellVMergeFirstDeprecated.First cell to merge with - Verticalprivate static byte[]cellVMergePrevDeprecated.Merge cell with previous vertical cellprivate intcellWidthDeprecated.Cell widthprivate static byte[]cellWidthStyleDeprecated.Cell width formatprivate static byte[]cellWidthTagDeprecated.Cell widthprivate booleanemptyCellDeprecated.Is this an empty cellprivate RtfTablemainTableDeprecated.TheRtfTableto which thisRtfCellbelongs.private static intMERGE_BOTH_FIRSTDeprecated.A possible value for mergingprivate static intMERGE_BOTH_PREVDeprecated.A possible value for mergingprivate static intMERGE_HORIZ_FIRSTDeprecated.A possible value for mergingprivate static intMERGE_HORIZ_PREVDeprecated.A possible value for mergingprivate static intMERGE_VERT_FIRSTDeprecated.A possible value for mergingprivate static intMERGE_VERT_PREVDeprecated.A possible value for mergingprivate intmergeTypeDeprecated.Type of merging to doprivate CellstoreDeprecated.Cellcontaining the actual dataprivate RtfWriterwriterDeprecated.TheRtfWriterto which thisRtfCellbelongs.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intgetCellRight()Deprecated.Get the position of the right border of thisRtfCell.intgetCellWidth()Deprecated.Get the with of thisRtfCellCellgetStore()Deprecated.Get theCellwith the actual content.intimportCell(Cell cell, int cellLeft, int cellWidth, int x, int y, int cellpadding)Deprecated.Import aCell.voidsetCellRight(int value)Deprecated.Sets the right position of the cellvoidsetCellWidth(int value)Deprecated.sets the width of the cellvoidsetMerge(int mergeType, RtfCell mergeCell)Deprecated.Sets the merge type and theRtfCellwith which thisRtfCellis to be merged.booleanwriteCellContent(java.io.ByteArrayOutputStream os)Deprecated.Write the content of theRtfCell.booleanwriteCellSettings(java.io.ByteArrayOutputStream os)Deprecated.Write the properties of theRtfCell.private voidwriteInt(java.io.ByteArrayOutputStream out, int i)Deprecated.Write an Integer to the Outputstream.
-
-
-
Field Detail
-
MERGE_HORIZ_FIRST
private static final int MERGE_HORIZ_FIRST
Deprecated.A possible value for merging- See Also:
- Constant Field Values
-
MERGE_VERT_FIRST
private static final int MERGE_VERT_FIRST
Deprecated.A possible value for merging- See Also:
- Constant Field Values
-
MERGE_BOTH_FIRST
private static final int MERGE_BOTH_FIRST
Deprecated.A possible value for merging- See Also:
- Constant Field Values
-
MERGE_HORIZ_PREV
private static final int MERGE_HORIZ_PREV
Deprecated.A possible value for merging- See Also:
- Constant Field Values
-
MERGE_VERT_PREV
private static final int MERGE_VERT_PREV
Deprecated.A possible value for merging- See Also:
- Constant Field Values
-
MERGE_BOTH_PREV
private static final int MERGE_BOTH_PREV
Deprecated.A possible value for merging- See Also:
- Constant Field Values
-
cellMergeFirst
private static final byte[] cellMergeFirst
Deprecated.First cell to merge with - Horizontal
-
cellVMergeFirst
private static final byte[] cellVMergeFirst
Deprecated.First cell to merge with - Vertical
-
cellMergePrev
private static final byte[] cellMergePrev
Deprecated.Merge cell with previous horizontal cell
-
cellVMergePrev
private static final byte[] cellVMergePrev
Deprecated.Merge cell with previous vertical cell
-
cellVerticalAlignBottom
private static final byte[] cellVerticalAlignBottom
Deprecated.Cell content vertical alignment bottom
-
cellVerticalAlignCenter
private static final byte[] cellVerticalAlignCenter
Deprecated.Cell content vertical alignment center
-
cellVerticalAlignTop
private static final byte[] cellVerticalAlignTop
Deprecated.Cell content vertical alignment top
-
cellBorderLeft
private static final byte[] cellBorderLeft
Deprecated.Cell border left
-
cellBorderRight
private static final byte[] cellBorderRight
Deprecated.Cell border right
-
cellBorderTop
private static final byte[] cellBorderTop
Deprecated.Cell border top
-
cellBorderBottom
private static final byte[] cellBorderBottom
Deprecated.Cell border bottom
-
cellBackgroundColor
private static final byte[] cellBackgroundColor
Deprecated.Cell background color
-
cellWidthStyle
private static final byte[] cellWidthStyle
Deprecated.Cell width format
-
cellWidthTag
private static final byte[] cellWidthTag
Deprecated.Cell width
-
cellRightBorder
private static final byte[] cellRightBorder
Deprecated.Cell right border position
-
cellInTable
protected static final byte[] cellInTable
Deprecated.Cell is part of table
-
cellEnd
private static final byte[] cellEnd
Deprecated.End of cell
-
cellPaddingTop
private static final byte[] cellPaddingTop
Deprecated.padding top
-
cellPaddingTopUnit
private static final byte[] cellPaddingTopUnit
Deprecated.padding top unit
-
cellPaddingBottom
private static final byte[] cellPaddingBottom
Deprecated.padding bottom
-
cellPaddingBottomUnit
private static final byte[] cellPaddingBottomUnit
Deprecated.padding bottom unit
-
cellPaddingLeft
private static final byte[] cellPaddingLeft
Deprecated.padding left
-
cellPaddingLeftUnit
private static final byte[] cellPaddingLeftUnit
Deprecated.padding left unit
-
cellPaddingRight
private static final byte[] cellPaddingRight
Deprecated.padding right
-
cellPaddingRightUnit
private static final byte[] cellPaddingRightUnit
Deprecated.padding right unit
-
writer
private RtfWriter writer
Deprecated.TheRtfWriterto which thisRtfCellbelongs.
-
mainTable
private RtfTable mainTable
Deprecated.TheRtfTableto which thisRtfCellbelongs.
-
cellWidth
private int cellWidth
Deprecated.Cell width
-
cellRight
private int cellRight
Deprecated.Cell right border position
-
store
private Cell store
Deprecated.Cellcontaining the actual data
-
emptyCell
private boolean emptyCell
Deprecated.Is this an empty cell
-
mergeType
private int mergeType
Deprecated.Type of merging to do
-
cellpadding
private int cellpadding
Deprecated.cell padding, because the table only renders the left and right cell padding and not the top and bottom one
-
-
Method Detail
-
importCell
public int importCell(Cell cell, int cellLeft, int cellWidth, int x, int y, int cellpadding)
Deprecated.Import aCell.- Parameters:
cell- TheCellcontaining the data for thisRtfCellcellLeft- The position of the left bordercellWidth- The default width of a cellx- The column index of thisRtfCelly- The row index of thisRtfCellcellpadding- the cellpadding- Returns:
- the position of the right side of the cell
-
writeCellSettings
public boolean writeCellSettings(java.io.ByteArrayOutputStream os) throws DocumentExceptionDeprecated.Write the properties of theRtfCell.- Parameters:
os- TheOutputStreamto which to write the properties of theRtfCellto.- Returns:
- true if writing the cell settings succeeded
- Throws:
DocumentException
-
writeCellContent
public boolean writeCellContent(java.io.ByteArrayOutputStream os) throws DocumentExceptionDeprecated.Write the content of theRtfCell.- Parameters:
os- TheOutputStreamto which to write the content of theRtfCellto.- Returns:
- true if writing the cell content succeeded
- Throws:
DocumentException
-
setMerge
public void setMerge(int mergeType, RtfCell mergeCell)Deprecated.Sets the merge type and theRtfCellwith which thisRtfCellis 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- TheRtfCellthat the cell at x and y is to be merged with
-
getStore
public Cell getStore()
Deprecated.Get theCellwith the actual content.- Returns:
Cellwhich is contained in theRtfCell
-
getCellWidth
public int getCellWidth()
Deprecated.Get the with of thisRtfCell- 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 thisRtfCell.- 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
-
writeInt
private void writeInt(java.io.ByteArrayOutputStream out, int i) throws java.io.IOExceptionDeprecated.Write an Integer to the Outputstream.- Parameters:
out- TheOutputStreamto be written to.i- The int to be written.- Throws:
java.io.IOException
-
-