|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lowagie.text.Rectangle
com.lowagie.text.pdf.PdfPCell
A cell in a PdfPTable.
Field Summary | |
private int |
arabicOptions
|
private PdfPCellEvent |
cellEvent
Holds value of property cellEvent. |
private int |
colspan
Holds value of property colspan. |
protected float |
extraParagraphSpace
The extra space between paragraphs. |
private float |
fixedHeight
Holds value of property fixedHeight. |
protected float |
fixedLeading
The fixed text leading. |
protected float |
followingIndent
The following paragraph lines indent. |
private int |
horizontalAlignment
Holds value of property horizontalAlignment. |
private Image |
image
Holds value of property image. |
protected float |
indent
The first paragraph line indent. |
private float |
minimumHeight
Holds value of property minimumHeight. |
protected float |
multipliedLeading
The text leading that is multiplied by the biggest font size in the line. |
private boolean |
noWrap
Holds value of property noWrap. |
private float |
paddingBottom
Holds value of property paddingBottom. |
private float |
paddingLeft
Holds value of property paddingLeft. |
private float |
paddingRight
Holds value of property paddingLeft. |
private float |
paddingTop
Holds value of property paddingTop. |
protected Phrase |
phrase
The text in the cell. |
protected float |
rightIndent
The right paragraph lines indent. |
protected int |
runDirection
|
private float |
spaceCharRatio
|
private PdfPTable |
table
Holds value of property table. |
private boolean |
useDescender
Holds value of property useDescender. |
private int |
verticalAlignment
Holds value of property verticalAlignment. |
Fields inherited from class com.lowagie.text.Rectangle |
background, border, borderWidth, BOTTOM, BOX, color, grayFill, LEFT, llx, lly, markupAttributes, NO_BORDER, RIGHT, rotation, TOP, UNDEFINED, urx, ury |
Fields inherited from interface com.lowagie.text.Element |
ALIGN_BASELINE, ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_JUSTIFIED, ALIGN_JUSTIFIED_ALL, ALIGN_LEFT, ALIGN_MIDDLE, ALIGN_RIGHT, ALIGN_TOP, ALIGN_UNDEFINED, ANCHOR, ANNOTATION, AUTHOR, CCITT_BLACKIS1, CCITT_ENCODEDBYTEALIGN, CCITT_ENDOFBLOCK, CCITT_ENDOFLINE, CCITTG3_1D, CCITTG3_2D, CCITTG4, CELL, CHAPTER, CHUNK, CREATIONDATE, CREATOR, GRAPHIC, HEADER, IMGRAW, IMGTEMPLATE, JPEG, KEYWORDS, LIST, LISTITEM, PARAGRAPH, PHRASE, PRODUCER, PTABLE, RECTANGLE, ROW, SECTION, SUBJECT, TABLE, TITLE |
Constructor Summary | |
PdfPCell(Image image)
Constructs a PdfPCell with an Image .
|
|
PdfPCell(Image image,
boolean fit)
Constructs a PdfPCell with an Image .
|
|
PdfPCell(PdfPCell cell)
Constructs a deep copy of a PdfPCell . |
|
PdfPCell(PdfPTable table)
Constructs a PdfPCell with a PdfPtable .
|
|
PdfPCell(Phrase phrase)
Constructs a PdfPCell with a Phrase .
|
Method Summary | |
int |
getArabicOptions()
Gets the arabic shaping options. |
PdfPCellEvent |
getCellEvent()
Gets the cell event for this cell. |
int |
getColspan()
Getter for property colspan. |
float |
getExtraParagraphSpace()
Sets the extra space between paragraphs. |
float |
getFixedHeight()
Getter for property fixedHeight. |
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 |
getMinimumHeight()
Getter for property minimumHeight. |
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 |
getRunDirection()
|
float |
getSpaceCharRatio()
Gets the space/character extra spacing ratio for fully justified text. |
(package private) PdfPTable |
getTable()
Getter for property table. |
int |
getVerticalAlignment()
Gets the vertical alignment for the cell. |
boolean |
isNoWrap()
Getter for property noWrap. |
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 |
setExtraParagraphSpace(float extraParagraphSpace)
Sets the extra space between paragraphs. |
void |
setFixedHeight(float fixedHeight)
Setter for property fixedHeight. |
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)
Setter for property minimumHeight. |
void |
setNoWrap(boolean noWrap)
Setter for property noWrap. |
void |
setPadding(float padding)
|
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 |
setRunDirection(int runDirection)
|
void |
setSpaceCharRatio(float spaceCharRatio)
Sets the ratio between the extra word spacing and the extra character spacing when the text is fully justified. |
(package private) void |
setTable(PdfPTable table)
|
void |
setUseDescender(boolean useDescender)
Setter for property useDescender. |
void |
setVerticalAlignment(int verticalAlignment)
Sets the vertical alignment for the cell. |
Methods inherited from class com.lowagie.text.Rectangle |
backgroundColor, border, borderColor, borderWidth, bottom, bottom, getChunks, getMarkupAttribute, getMarkupAttributeNames, getMarkupAttributes, getRotation, grayFill, hasBorder, hasBorders, height, left, left, process, rectangle, right, right, rotate, setBackgroundColor, setBorder, setBorderColor, setBorderWidth, setBottom, setGrayFill, setLeft, setMarkupAttribute, setMarkupAttributes, setRight, setTop, top, top, type, width |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.lowagie.text.Element |
toString |
Field Detail |
private int horizontalAlignment
private int verticalAlignment
private float paddingLeft
private float paddingRight
private float paddingTop
private float paddingBottom
protected float fixedLeading
protected float multipliedLeading
protected float extraParagraphSpace
protected float indent
protected float followingIndent
protected float rightIndent
protected Phrase phrase
private float fixedHeight
private boolean noWrap
private PdfPTable table
private float minimumHeight
private int colspan
private float spaceCharRatio
protected int runDirection
private Image image
private PdfPCellEvent cellEvent
private int arabicOptions
private boolean useDescender
Constructor Detail |
public PdfPCell(Phrase phrase)
PdfPCell
with a Phrase
.
The default padding is 2.
phrase
- the textpublic PdfPCell(Image image)
PdfPCell
with an Image
.
The default padding is 0.
image
- the Image
public PdfPCell(Image image, boolean fit)
PdfPCell
with an Image
.
The default padding is 0.25 for a border width of 0.5.
image
- the Image
fit
- true
to fit the image to the cellpublic PdfPCell(PdfPTable table)
PdfPCell
with a PdfPtable
.
This constructor allows nested tables.
The default padding is 0.
table
- The PdfPTable
public PdfPCell(PdfPCell cell)
PdfPCell
.
cell
- the PdfPCell
to duplicateMethod Detail |
public Phrase getPhrase()
Phrase
from this cell.
Phrase
public void setPhrase(Phrase phrase)
Phrase
for this cell.
phrase
- the Phrase
public int getHorizontalAlignment()
public void setHorizontalAlignment(int horizontalAlignment)
Element.ALIGN_CENTER
for example.
horizontalAlignment
- The horizontal alignmentpublic int getVerticalAlignment()
public void setVerticalAlignment(int verticalAlignment)
Element.ALIGN_MIDDLE
for example.
verticalAlignment
- The vertical alignmentpublic float getPaddingLeft()
public void setPaddingLeft(float paddingLeft)
paddingLeft
- New value of property paddingLeft.public float getPaddingRight()
public void setPaddingRight(float paddingRight)
paddingRight
- New value of property paddingRight.public float getPaddingTop()
public void setPaddingTop(float paddingTop)
paddingTop
- New value of property paddingTop.public float getPaddingBottom()
public void setPaddingBottom(float paddingBottom)
paddingBottom
- New value of property paddingBottom.public void setPadding(float padding)
public void setLeading(float fixedLeading, float multipliedLeading)
fixedLeading
- the fixed leadingmultipliedLeading
- the variable leadingpublic float getLeading()
public float getMultipliedLeading()
public void setIndent(float indent)
indent
- the indentpublic float getIndent()
public float getExtraParagraphSpace()
public void setExtraParagraphSpace(float extraParagraphSpace)
extraParagraphSpace
- the extra space between paragraphspublic float getFixedHeight()
public void setFixedHeight(float fixedHeight)
fixedHeight
- New value of property fixedHeight.public boolean isNoWrap()
public void setNoWrap(boolean noWrap)
noWrap
- New value of property noWrap.PdfPTable getTable()
void setTable(PdfPTable table)
public float getMinimumHeight()
public void setMinimumHeight(float minimumHeight)
minimumHeight
- New value of property minimumHeight.public int getColspan()
public void setColspan(int colspan)
colspan
- New value of property colspan.public void setFollowingIndent(float indent)
indent
- the indentpublic float getFollowingIndent()
public void setRightIndent(float indent)
indent
- the indentpublic float getRightIndent()
public float getSpaceCharRatio()
public void setSpaceCharRatio(float spaceCharRatio)
spaceCharRatio
times more than extra character spacing.
If the ratio is PdfWriter.NO_SPACE_CHAR_RATIO
then the extra character spacing
will be zero.
spaceCharRatio
- the ratio between the extra word spacing and the extra character spacingpublic void setRunDirection(int runDirection)
public int getRunDirection()
public Image getImage()
public void setImage(Image image)
image
- New value of property image.public PdfPCellEvent getCellEvent()
public void setCellEvent(PdfPCellEvent cellEvent)
cellEvent
- the cell eventpublic int getArabicOptions()
public void setArabicOptions(int arabicOptions)
arabicOptions
- the arabic shaping optionspublic boolean isUseDescender()
public void setUseDescender(boolean useDescender)
useDescender
- New value of property useDescender.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |