|
||||||||||
| 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.PdfCell
public class PdfCell
A PdfCell is the PDF translation of a Cell.
A PdfCell is an ArrayList of PdfLines.
When using variable borders (isUseVariableBorders() == true),
the borders are drawn completely inside the cell Rectangle
so that adjacent cell borders will not overlap.
Otherwise, the borders are drawn on top of the edges of the
cell Rectangle and will overlap the borders of adjacent
cells.
Rectangle,
Cell,
PdfLine,
PdfTable| Field Summary |
|---|
| Fields inherited from class com.lowagie.text.Rectangle |
|---|
background, border, borderColorBottom, borderColorLeft, borderColorRight, borderColorTop, borderWidth, borderWidthBottom, borderWidthLeft, borderWidthRight, borderWidthTop, BOTTOM, BOX, color, LEFT, llx, lly, markupAttributes, NO_BORDER, RIGHT, rotation, TOP, UNDEFINED, urx, ury, useVariableBorders |
| Constructor Summary | |
|---|---|
PdfCell(Cell cell,
int rownumber,
float left,
float right,
float top,
float cellspacing,
float cellpadding)
Constructs a PdfCell-object. |
|
| Method Summary | |
|---|---|
float |
bottom()
Returns the lower left y-coordinate. |
float |
cellpadding()
Gets the cellpadding of a cell.. |
float |
cellspacing()
Gets the cellspacing of a cell. |
int |
getGroupNumber()
Gets the number of the group this cell is in.. |
ArrayList |
getImages(float top,
float bottom)
Gets the images of a cell that can be drawn between certain limits. |
ArrayList |
getLines(float top,
float bottom)
Gets the lines of a cell that can be drawn between certain limits. |
boolean |
isUseAscender()
Gets the value of useAscender |
boolean |
isUseBorderPadding()
Gets the value of useBorderPadding. |
boolean |
isUseDescender()
gets the value of useDescender |
float |
leading()
Gets the leading of a cell. |
float |
left()
Returns the lower left x-coordinaat. |
protected void |
processActions(Element element,
PdfAction action,
ArrayList allActions)
Processes all actions contained in the cell. |
Rectangle |
rectangle(float top,
float bottom)
Gets a Rectangle that is altered to fit on the page. |
float |
remainingHeight()
Returns the height needed to draw the remaining text. |
int |
remainingLines()
Returns the number of lines in the cell that are not empty. |
float |
right()
Returns the upper right x-coordinate. |
int |
rownumber()
Gets the number of the row this cell is in.. |
int |
rowspan()
Gets the rowspan of a cell. |
void |
setBottom(float value)
Sets the bottom of the Rectangle and determines the proper {link #verticalOffset} to appropriately align the contents vertically. |
void |
setUseAscender(boolean use)
Sets the value of useAscender. |
void |
setUseBorderPadding(boolean use)
Sets the value of useBorderPadding. |
void |
setUseDescender(boolean use)
Sets the value of useDescender. |
int |
size()
Returns the number of lines in the cell. |
float |
top()
Returns the upper right y-coordinate. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PdfCell(Cell cell,
int rownumber,
float left,
float right,
float top,
float cellspacing,
float cellpadding)
PdfCell-object.
cell - the original Cellrownumber - the number of the Row the Cell was in.left - the left border of the PdfCellright - the right border of the PdfCelltop - the top border of the PdfCellcellspacing - the cellspacing of the Tablecellpadding - the cellpadding of the Table| Method Detail |
|---|
public void setBottom(float value)
setBottom in class Rectanglevalue - public float left()
left in class Rectanglepublic float right()
right in class Rectanglepublic float top()
top in class Rectanglepublic float bottom()
bottom in class Rectangle
public ArrayList getLines(float top,
float bottom)
Remark: all the lines that can be drawn are removed from the object!
top - the top of the part of the table that can be drawnbottom - the bottom of the part of the table that can be drawn
ArrayList of PdfLines
public ArrayList getImages(float top,
float bottom)
Remark: all the lines that can be drawn are removed from the object!
top - the top of the part of the table that can be drawnbottom - the bottom of the part of the table that can be drawn
ArrayList of Imagespublic int size()
public int remainingLines()
public float remainingHeight()
public float leading()
public int rownumber()
public int rowspan()
public float cellspacing()
public float cellpadding()
protected void processActions(Element element,
PdfAction action,
ArrayList allActions)
element - an element in the cellaction - an action that should be coupled to the cellallActions - public int getGroupNumber()
public Rectangle rectangle(float top,
float bottom)
rectangle in class Rectangletop - the top positionbottom - the bottom position
Rectanglepublic void setUseAscender(boolean use)
useAscender.
use - use ascender height if truepublic boolean isUseAscender()
useAscender
public void setUseDescender(boolean use)
useDescender.
use - use descender height if truepublic boolean isUseDescender()
useDescender
public void setUseBorderPadding(boolean use)
useBorderPadding.
use - adjust layour for borders if truepublic boolean isUseBorderPadding()
useBorderPadding.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||