Rectangle that can be used for Cells.
This Rectangle is padded and knows how to draw itself in a PdfPTable or PdfPcellEvent.
CELL
public static final boolean CELL
the CellAttributes object represents a cell.
ROW
public static final boolean ROW
the CellAttributes object represents a row.
cellgroup
private boolean cellgroup
indicates if these are the attributes of a single Cell (false) or a group of Cells (true).
colspan
private int colspan
the colspan of a Cell
content
private ArrayList content
the content of the Cell.
horizontalAlignment
private int horizontalAlignment
horizontal alignment inside the Cell.
padding_bottom
private float padding_bottom
an extra padding variable
padding_left
private float padding_left
an extra padding variable
padding_right
private float padding_right
an extra padding variable
padding_top
private float padding_top
an extra padding variable
spacing_bottom
private float spacing_bottom
an extra spacing variable
spacing_left
private float spacing_left
an extra spacing variable
spacing_right
private float spacing_right
an extra spacing variable
spacing_top
private float spacing_top
an extra spacing variable
useAscender
protected boolean useAscender
Indicates that the largest ascender height should be used to determine the
height of the first line. Note that this only has an effect when rendered
to PDF. Setting this to true can help with vertical alignment problems.
useBorderPadding
protected boolean useBorderPadding
Adjusts the cell contents to compensate for border widths. Note that
this only has an effect when rendered to PDF.
useDescender
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). Note that
this only has an effect when rendered to PDF.
verticalAlignment
private int verticalAlignment
vertical alignment inside the Cell.
width
private float width
the width of the Cell.
widthpercentage
private float widthpercentage
the widthpercentage of the Cell.
add
public boolean add(Object o)
- add in interface TextElementArray
com.lowagie.text.TextElementArray.add(java.lang.Object)
createPdfPCell
public PdfPCell createPdfPCell(SimpleCell rowAttributes)
Creates a PdfPCell with these attributes.
- a PdfPCell based on these attributes.
getColspan
public int getColspan()
getContent
(package private) ArrayList getContent()
getDimensionlessInstance
public static SimpleCell getDimensionlessInstance(Rectangle rectangle,
float spacing)
getHorizontalAlignment
public int getHorizontalAlignment()
- Returns the horizontal alignment.
getPadding_bottom
public float getPadding_bottom()
- Returns the padding_bottom.
getPadding_left
public float getPadding_left()
- Returns the padding_left.
getPadding_right
public float getPadding_right()
- Returns the padding_right.
getPadding_top
public float getPadding_top()
getSpacing_bottom
public float getSpacing_bottom()
getSpacing_left
public float getSpacing_left()
getSpacing_right
public float getSpacing_right()
getSpacing_top
public float getSpacing_top()
getVerticalAlignment
public int getVerticalAlignment()
- Returns the vertical alignment.
getWidth
public float getWidth()
getWidthpercentage
public float getWidthpercentage()
- Returns the widthpercentage.
isCellgroup
public boolean isCellgroup()
isUseAscender
public boolean isUseAscender()
isUseBorderPadding
public boolean isUseBorderPadding()
- Returns the useBorderPadding.
isUseDescender
public boolean isUseDescender()
- Returns the useDescender.
setCellgroup
public void setCellgroup(boolean cellgroup)
cellgroup
- The cellgroup to set.