Save This Page
Home » iText-src-2.1.3 » com.lowagie » text » pdf » [javadoc | source]
com.lowagie.text.pdf
public class: PdfCell [javadoc | source]
java.lang.Object
   com.lowagie.text.Rectangle
      com.lowagie.text.pdf.PdfCell

All Implemented Interfaces:
    Element

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.

Fields inherited from com.lowagie.text.Rectangle:
UNDEFINED,  TOP,  BOTTOM,  LEFT,  RIGHT,  NO_BORDER,  BOX,  llx,  lly,  urx,  ury,  rotation,  border,  borderWidth,  borderColor,  backgroundColor,  useVariableBorders,  borderWidthLeft,  borderWidthRight,  borderWidthTop,  borderWidthBottom,  borderColorLeft,  borderColorRight,  borderColorTop,  borderColorBottom
Constructor:
 public PdfCell(Cell cell,
    int rownumber,
    float left,
    float right,
    float top,
    float cellspacing,
    float cellpadding) 
    Constructs a PdfCell-object.
    Parameters:
    cell - the original Cell
    rownumber - the number of the Row the Cell was in.
    left - the left border of the PdfCell
    right - the right border of the PdfCell
    top - the top border of the PdfCell
    cellspacing - the cellspacing of the Table
    cellpadding - the cellpadding of the Table
Method from com.lowagie.text.pdf.PdfCell Summary:
cellpadding,   cellspacing,   getBottom,   getGroupNumber,   getImages,   getLeft,   getLines,   getRight,   getTop,   isHeader,   isUseAscender,   isUseBorderPadding,   isUseDescender,   leading,   mayBeRemoved,   processActions,   rectangle,   remainingHeight,   rownumber,   rowspan,   setBottom,   setGroupNumber,   setHeader,   setUseAscender,   setUseBorderPadding,   setUseDescender,   size
Methods from com.lowagie.text.Rectangle:
cloneNonPositionParameters,   disableBorderSide,   enableBorderSide,   getBackgroundColor,   getBorder,   getBorderColor,   getBorderColorBottom,   getBorderColorLeft,   getBorderColorRight,   getBorderColorTop,   getBorderWidth,   getBorderWidthBottom,   getBorderWidthLeft,   getBorderWidthRight,   getBorderWidthTop,   getBottom,   getBottom,   getChunks,   getGrayFill,   getHeight,   getLeft,   getLeft,   getRight,   getRight,   getRotation,   getTop,   getTop,   getWidth,   hasBorder,   hasBorders,   isContent,   isNestable,   isUseVariableBorders,   normalize,   process,   rectangle,   rotate,   setBackgroundColor,   setBorder,   setBorderColor,   setBorderColorBottom,   setBorderColorLeft,   setBorderColorRight,   setBorderColorTop,   setBorderWidth,   setBorderWidthBottom,   setBorderWidthLeft,   setBorderWidthRight,   setBorderWidthTop,   setBottom,   setGrayFill,   setLeft,   setRight,   setTop,   setUseVariableBorders,   softCloneNonPositionParameters,   toString,   type
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.lowagie.text.pdf.PdfCell Detail:
 public float cellpadding() 
    Gets the cellpadding of a cell..
 public float cellspacing() 
    Gets the cellspacing of a cell.
 public float getBottom() 
    Returns the lower left y-coordinate.
 public int getGroupNumber() 
    Gets the number of the group this cell is in..
 public ArrayList getImages(float top,
    float bottom) 
    Gets the images of a cell that can be drawn between certain limits.

    Remark: all the lines that can be drawn are removed from the object!

 public float getLeft() 
    Returns the lower left x-coordinate.
 public ArrayList getLines(float top,
    float bottom) 
    Gets the lines of a cell that can be drawn between certain limits.

    Remark: all the lines that can be drawn are removed from the object!

 public float getRight() 
    Returns the upper right x-coordinate.
 public float getTop() 
    Returns the upper right y-coordinate.
 boolean isHeader() 
    Checks if this cell belongs to the header of a PdfTable.
 public boolean isUseAscender() 
    Gets the value of useAscender
 public boolean isUseBorderPadding() 
    Gets the value of useBorderPadding.
 public boolean isUseDescender() 
    gets the value of useDescender
 public float leading() 
    Gets the leading of a cell.
 boolean mayBeRemoved() 
    Checks if the cell may be removed.

    Headers may always be removed, even if they are drawn only partially: they will be repeated on each following page anyway!

 protected  void processActions(Element element,
    PdfAction action,
    ArrayList allActions) 
    Processes all actions contained in the cell.
 public Rectangle rectangle(float top,
    float bottom) 
    Gets a Rectangle that is altered to fit on the page.
 public float remainingHeight() 
    Returns the height needed to draw the remaining text.
 public int rownumber() 
    Gets the number of the row this cell is in..
 public int rowspan() 
    Gets the rowspan of a cell.
 public  void setBottom(float value) 
    Sets the bottom of the Rectangle and determines the proper {link #verticalOffset} to appropriately align the contents vertically.
  void setGroupNumber(int number) 
    Sets the group number.
  void setHeader() 
    Indicates that this cell belongs to the header of a PdfTable.
 public  void setUseAscender(boolean use) 
    Sets the value of useAscender.
 public  void setUseBorderPadding(boolean use) 
    Sets the value of useBorderPadding.
 public  void setUseDescender(boolean use) 
    Sets the value of useDescender.
 public int size() 
    Returns the number of lines in the cell.