com.lowagie.text
public class SimpleCell extends Rectangle implements PdfPCellEvent, TextElementArray
Field Summary | |
---|---|
boolean | cellgroup indicates if these are the attributes of a single Cell (false) or a group of Cells (true). |
int | colspan the colspan of a Cell |
ArrayList | content the content of the Cell. |
static boolean | CELL the CellAttributes object represents a cell. |
int | horizontalAlignment horizontal alignment inside the Cell. |
float | padding_bottom an extra padding variable |
float | padding_left an extra padding variable |
float | padding_right an extra padding variable |
float | padding_top an extra padding variable |
static boolean | ROW the CellAttributes object represents a row. |
float | spacing_bottom an extra spacing variable |
float | spacing_left an extra spacing variable |
float | spacing_right an extra spacing variable |
float | spacing_top an extra spacing variable |
protected boolean | useAscender Indicates that the largest ascender height should be used to determine the
height of the first line. |
protected boolean | useBorderPadding
Adjusts the cell contents to compensate for border widths. |
protected boolean | useDescender Indicates that the largest descender height should be added to the height of
the last line (so characters like y don't dip into the border). |
int | verticalAlignment vertical alignment inside the Cell. |
float | width the width of the Cell. |
float | widthpercentage the widthpercentage of the Cell. |
Constructor Summary | |
---|---|
SimpleCell(boolean row)
A CellAttributes object is always constructed without any dimensions.
|
Method Summary | |
---|---|
boolean | add(Object o) |
void | addElement(Element element)
Adds content to this object. |
void | cellLayout(PdfPCell cell, Rectangle position, PdfContentByte[] canvases) |
Cell | createCell(SimpleCell rowAttributes)
Creates a Cell with these attributes. |
PdfPCell | createPdfPCell(SimpleCell rowAttributes)
Creates a PdfPCell with these attributes. |
int | getColspan() |
ArrayList | getContent() |
int | getHorizontalAlignment() |
float | getPadding_bottom() |
float | getPadding_left() |
float | getPadding_right() |
float | getPadding_top() |
float | getSpacing_bottom() |
float | getSpacing_left() |
float | getSpacing_right() |
float | getSpacing_top() |
int | getVerticalAlignment() |
float | getWidth() |
float | getWidthpercentage() |
boolean | isCellgroup() |
boolean | isUseAscender() |
boolean | isUseBorderPadding() |
boolean | isUseDescender() |
void | setCellgroup(boolean cellgroup) |
void | setColspan(int colspan) |
void | setHorizontalAlignment(int horizontalAlignment) |
void | setPadding(float padding) Sets the padding parameters if they are undefined. |
void | setPadding_bottom(float padding_bottom) |
void | setPadding_left(float padding_left) |
void | setPadding_right(float padding_right) |
void | setPadding_top(float padding_top) |
void | setSpacing(float spacing) |
void | setSpacing_bottom(float spacing) |
void | setSpacing_left(float spacing) |
void | setSpacing_right(float spacing) |
void | setSpacing_top(float spacing) |
void | setUseAscender(boolean useAscender) |
void | setUseBorderPadding(boolean useBorderPadding) |
void | setUseDescender(boolean useDescender) |
void | setVerticalAlignment(int verticalAlignment) |
void | setWidth(float width) |
void | setWidthpercentage(float widthpercentage) |
int | type() |
Parameters: row only true if the CellAttributes object represents a row.
See Also: TextElementArray
Parameters: element
Throws: BadElementException
See Also: (com.lowagie.text.pdf.PdfPCell, com.lowagie.text.Rectangle, com.lowagie.text.pdf.PdfContentByte[])
Parameters: rowAttributes
Returns: a cell based on these attributes.
Throws: BadElementException
Parameters: rowAttributes
Returns: a PdfPCell based on these attributes.
Returns: Returns the colspan.
Returns: Returns the content.
Returns: Returns the horizontal alignment.
Returns: Returns the padding_bottom.
Returns: Returns the padding_left.
Returns: Returns the padding_right.
Returns: Returns the padding_top.
Returns: Returns the spacing.
Returns: Returns the spacing.
Returns: Returns the spacing.
Returns: Returns the spacing.
Returns: Returns the vertical alignment.
Returns: Returns the width.
Returns: Returns the widthpercentage.
Returns: Returns the cellgroup.
Returns: Returns the useAscender.
Returns: Returns the useBorderPadding.
Returns: Returns the useDescender.
Parameters: cellgroup The cellgroup to set.
Parameters: colspan The colspan to set.
Parameters: horizontalAlignment The horizontalAlignment to set.
Parameters: padding
Parameters: padding_bottom The padding_bottom to set.
Parameters: padding_left The padding_left to set.
Parameters: padding_right The padding_right to set.
Parameters: padding_top The padding_top to set.
Parameters: spacing The spacing to set.
Parameters: spacing The spacing to set.
Parameters: spacing The spacing to set.
Parameters: spacing The spacing to set.
Parameters: spacing The spacing to set.
Parameters: useAscender The useAscender to set.
Parameters: useBorderPadding The useBorderPadding to set.
Parameters: useDescender The useDescender to set.
Parameters: verticalAlignment The verticalAligment to set.
Parameters: width The width to set.
Parameters: widthpercentage The widthpercentage to set.
See Also: type