com.lowagie.text.pdf
public class PdfPCell extends Rectangle
Field Summary | |
---|---|
PdfPCellEvent | cellEvent Holds value of property cellEvent. |
int | colspan Holds value of property colspan. |
ColumnText | column |
float | fixedHeight Fixed height of the cell. |
Image | image Holds value of property image. |
float | minimumHeight Minimum height of the cell. |
boolean | noWrap Holds value of property noWrap. |
float | paddingBottom Bottom padding of the cell. |
float | paddingLeft Left padding of the cell. |
float | paddingRight Right padding of the cell. |
float | paddingTop Top padding of the cell. |
protected Phrase | phrase The text in the cell. |
int | rotation
The rotation of the cell. |
int | rowspan
Holds value of property rowspan. |
PdfPTable | table Holds value of property table. |
boolean | useBorderPadding Increases padding to include border if true |
boolean | useDescender Holds value of property useDescender. |
int | verticalAlignment Vertical alignment of the cell. |
Constructor Summary | |
---|---|
PdfPCell()
Constructs an empty PdfPCell .
| |
PdfPCell(Phrase phrase)
Constructs a PdfPCell with a Phrase .
| |
PdfPCell(Image image)
Constructs a PdfPCell with an Image .
| |
PdfPCell(Image image, boolean fit)
Constructs a PdfPCell with an Image .
| |
PdfPCell(PdfPTable table)
Constructs a PdfPCell with a PdfPtable .
| |
PdfPCell(PdfPTable table, PdfPCell style)
Constructs a PdfPCell with a PdfPtable .
| |
PdfPCell(PdfPCell cell)
Constructs a deep copy of a PdfPCell .
|
Method Summary | |
---|---|
void | addElement(Element element)
Adds an iText element to the cell.
|
void | consumeHeight(float height)
Consumes part of the content of the cell. |
int | getArabicOptions()
Gets the arabic shaping options.
|
PdfPCellEvent | getCellEvent()
Gets the cell event for this cell.
|
int | getColspan()
Getter for property colspan.
|
ColumnText | getColumn()
Gets the ColumnText with the content of the cell.
|
List | getCompositeElements()
Returns the list of composite elements of the column.
|
float | getEffectivePaddingBottom()
Gets the effective bottom padding.
|
float | getEffectivePaddingLeft()
Gets the effective left padding.
|
float | getEffectivePaddingRight()
Gets the effective right padding. |
float | getEffectivePaddingTop()
Gets the effective top padding. |
float | getExtraParagraphSpace()
Gets the extra space between paragraphs.
|
float | getFixedHeight()
Get the fixed height of the cell.
|
float | getFollowingIndent()
Gets the following paragraph lines indent.
|
int | getHorizontalAlignment()
Gets the horizontal alignment for the cell.
|
Image | getImage()
Getter for property image.
|
float | getIndent()
Gets the first paragraph line indent.
|
float | getLeading()
Gets the fixed leading.
|
float | getMaxHeight()
Returns the height of the cell. |
float | getMinimumHeight()
Get the minimum height of the cell.
|
float | getMultipliedLeading()
Gets the variable leading.
|
float | getPaddingBottom()
Getter for property paddingBottom.
|
float | getPaddingLeft() |
float | getPaddingRight()
Getter for property paddingRight.
|
float | getPaddingTop()
Getter for property paddingTop.
|
Phrase | getPhrase()
Gets the Phrase from this cell.
|
float | getRightIndent()
Gets the right paragraph lines indent.
|
int | getRotation()
Gets the rotation of the cell.
|
int | getRowspan()
Getter for property rowspan.
|
int | getRunDirection()
Gets the run direction of the text content in the cell
|
float | getSpaceCharRatio()
Gets the space/character extra spacing ratio for fully justified text.
|
PdfPTable | getTable()
Getter for property table.
|
int | getVerticalAlignment()
Gets the vertical alignment for the cell.
|
boolean | hasFixedHeight()
Tells you whether the cell has a fixed height.
|
boolean | hasMinimumHeight()
Tells you whether the cell has a minimum height.
|
boolean | isNoWrap()
Getter for property noWrap.
|
boolean | isUseAscender()
Gets state of first line height based on max ascender
|
boolean | isUseBorderPadding()
If true, then effective padding will include border widths
|
boolean | isUseDescender()
Getter for property useDescender.
|
void | setArabicOptions(int arabicOptions)
Sets the arabic shaping options.
|
void | setCellEvent(PdfPCellEvent cellEvent)
Sets the cell event for this cell.
|
void | setColspan(int colspan)
Setter for property colspan.
|
void | setColumn(ColumnText column)
Sets the columntext in the cell.
|
void | setExtraParagraphSpace(float extraParagraphSpace)
Sets the extra space between paragraphs.
|
void | setFixedHeight(float fixedHeight)
Set a fixed height for the cell.
|
void | setFollowingIndent(float indent)
Sets the following paragraph lines indent.
|
void | setHorizontalAlignment(int horizontalAlignment)
Sets the horizontal alignment for the cell. |
void | setImage(Image image)
Setter for property image.
|
void | setIndent(float indent)
Sets the first paragraph line indent.
|
void | setLeading(float fixedLeading, float multipliedLeading)
Sets the leading fixed and variable.
|
void | setMinimumHeight(float minimumHeight)
Set a minimum height for the cell.
|
void | setNoWrap(boolean noWrap)
Setter for property noWrap.
|
void | setPadding(float padding)
Sets the padding of the contents in the cell (space between content and border).
|
void | setPaddingBottom(float paddingBottom)
Setter for property paddingBottom.
|
void | setPaddingLeft(float paddingLeft)
Setter for property paddingLeft.
|
void | setPaddingRight(float paddingRight)
Setter for property paddingRight.
|
void | setPaddingTop(float paddingTop)
Setter for property paddingTop.
|
void | setPhrase(Phrase phrase)
Sets the Phrase for this cell.
|
void | setRightIndent(float indent)
Sets the right paragraph lines indent.
|
void | setRotation(int rotation)
Sets the rotation of the cell.
|
void | setRowspan(int rowspan)
Setter for property rowspan.
|
void | setRunDirection(int runDirection)
Sets the run direction of the text content in the cell.
|
void | setSpaceCharRatio(float spaceCharRatio) Sets the ratio between the extra word spacing and the
extra character spacing when the text is fully justified.
|
void | setTable(PdfPTable table) |
void | setUseAscender(boolean useAscender)
Enables/ Disables adjustment of first line height based on max ascender.
|
void | setUseBorderPadding(boolean use)
Adjusts effective padding to include border widths.
|
void | setUseDescender(boolean useDescender)
Setter for property useDescender.
|
void | setVerticalAlignment(int verticalAlignment)
Sets the vertical alignment for the cell. |
Since: 2.1.6
PdfPCell
.
The default padding is 2.PdfPCell
with a Phrase
.
The default padding is 2.
Parameters: phrase the text
PdfPCell
with an Image
.
The default padding is 0.
Parameters: image the Image
PdfPCell
with an Image
.
The default padding is 0.25 for a border width of 0.5.
Parameters: image the Image
fit true
to fit the image to the cell
PdfPCell
with a PdfPtable
.
This constructor allows nested tables.
The default padding is 0.
Parameters: table The PdfPTable
PdfPCell
with a PdfPtable
.
This constructor allows nested tables.
Parameters: table The PdfPTable
style The style to apply to the cell (you could use getDefaultCell())
Since: 2.1.0
PdfPCell
.
Parameters: cell the PdfPCell
to duplicate
Parameters: element
Parameters: height the hight of the part that has to be consumed
Since: 2.1.6
Returns: the arabic shaping options
Returns: the cell event
Returns: Value of property colspan.
Returns: a columntext object
Returns: a List object.
Since: 2.1.1
Returns: effective value of property paddingBottom.
Returns: effective value of property paddingLeft.
Returns: effective value of property paddingRight.
Returns: effective value of property paddingTop.
Returns: the extra space between paragraphs
Returns: Value of property fixedHeight.
Returns: the indent
Returns: the horizontal alignment for the cell
Returns: Value of property image.
Returns: the indent
Returns: the leading
Returns: the height of the cell
Since: 3.0.0
Returns: Value of property minimumHeight.
Returns: the leading
Returns: Value of property paddingBottom.
Returns: Value of property paddingLeft.
Returns: Value of property paddingRight.
Returns: Value of property paddingTop.
Phrase
from this cell.
Returns: the Phrase
Returns: the indent
Returns: the rotation of the cell.
Returns: Value of property rowspan.
Since: 2.1.6
Returns: One of the following values: PdfWriter.RUN_DIRECTION_DEFAULT, PdfWriter.RUN_DIRECTION_NO_BIDI, PdfWriter.RUN_DIRECTION_LTR or PdfWriter.RUN_DIRECTION_RTL.
Returns: the space/character extra spacing ratio
Returns: Value of property table.
Since: 2.x
Returns: the vertical alignment for the cell
Returns: true is a fixed height was set.
Since: 2.1.5
Returns: true if a minimum height was set.
Since: 2.1.5
Returns: Value of property noWrap.
Returns: true if an ascender is to be used.
Returns: true if effective padding includes border widths
Returns: Value of property useDescender.
Parameters: arabicOptions the arabic shaping options
Parameters: cellEvent the cell event
Parameters: colspan New value of property colspan.
Parameters: column
Parameters: extraParagraphSpace the extra space between paragraphs
Parameters: fixedHeight New value of property fixedHeight.
Parameters: indent the indent
Element.ALIGN_CENTER
for example.
Parameters: horizontalAlignment The horizontal alignment
Parameters: image New value of property image.
Parameters: indent the indent
Parameters: fixedLeading the fixed leading multipliedLeading the variable leading
Parameters: minimumHeight New value of property minimumHeight.
Parameters: noWrap New value of property noWrap.
Parameters: padding
Parameters: paddingBottom New value of property paddingBottom.
Parameters: paddingLeft New value of property paddingLeft.
Parameters: paddingRight New value of property paddingRight.
Parameters: paddingTop New value of property paddingTop.
Phrase
for this cell.
Parameters: phrase the Phrase
Parameters: indent the indent
Parameters: rotation the rotation of the cell
Parameters: rowspan New value of property rowspan.
Since: 2.1.6
Parameters: runDirection
spaceCharRatio
times more
than extra character spacing.
If the ratio is PdfWriter.NO_SPACE_CHAR_RATIO
then the
extra character spacing will be zero.
Parameters: spaceCharRatio the ratio between the extra word spacing and the extra character spacing
Parameters: useAscender adjust height if true
Parameters: use adjust effective padding if true
Parameters: useDescender New value of property useDescender.
Element.ALIGN_MIDDLE
for example.
Parameters: verticalAlignment The vertical alignment