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

All Implemented Interfaces:
    TextElementArray, PdfPCellEvent, Element

Rectangle that can be used for Cells. This Rectangle is padded and knows how to draw itself in a PdfPTable or PdfPcellEvent.
Field Summary
public static final  boolean ROW    the CellAttributes object represents a row. 
public static final  boolean CELL    the CellAttributes object represents a cell. 
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. 
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. 
protected  boolean useBorderPadding    Adjusts the cell contents to compensate for border widths. Note that this only has an effect when rendered to PDF. 
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 SimpleCell(boolean row) 
Method from com.lowagie.text.SimpleCell Summary:
add,   addElement,   cellLayout,   createCell,   createPdfPCell,   getColspan,   getContent,   getDimensionlessInstance,   getHorizontalAlignment,   getPadding_bottom,   getPadding_left,   getPadding_right,   getPadding_top,   getSpacing_bottom,   getSpacing_left,   getSpacing_right,   getSpacing_top,   getVerticalAlignment,   getWidth,   getWidthpercentage,   isCellgroup,   isUseAscender,   isUseBorderPadding,   isUseDescender,   setCellgroup,   setColspan,   setHorizontalAlignment,   setPadding,   setPadding_bottom,   setPadding_left,   setPadding_right,   setPadding_top,   setSpacing,   setSpacing_bottom,   setSpacing_left,   setSpacing_right,   setSpacing_top,   setUseAscender,   setUseBorderPadding,   setUseDescender,   setVerticalAlignment,   setWidth,   setWidthpercentage,   type
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.SimpleCell Detail:
 public boolean add(Object o) 
 public  void addElement(Element element) throws BadElementException 
    Adds content to this object.
 public  void cellLayout(PdfPCell cell,
    Rectangle position,
    PdfContentByte[] canvases) 
 public Cell createCell(SimpleCell rowAttributes) throws BadElementException 
    Creates a Cell with these attributes.
 public PdfPCell createPdfPCell(SimpleCell rowAttributes) 
    Creates a PdfPCell with these attributes.
 public int getColspan() 
 ArrayList getContent() 
 public static SimpleCell getDimensionlessInstance(Rectangle rectangle,
    float spacing) 
 public int getHorizontalAlignment() 
 public float getPadding_bottom() 
 public float getPadding_left() 
 public float getPadding_right() 
 public float getPadding_top() 
 public float getSpacing_bottom() 
 public float getSpacing_left() 
 public float getSpacing_right() 
 public float getSpacing_top() 
 public int getVerticalAlignment() 
 public float getWidth() 
 public float getWidthpercentage() 
 public boolean isCellgroup() 
 public boolean isUseAscender() 
 public boolean isUseBorderPadding() 
 public boolean isUseDescender() 
 public  void setCellgroup(boolean cellgroup) 
 public  void setColspan(int colspan) 
 public  void setHorizontalAlignment(int horizontalAlignment) 
 public  void setPadding(float padding) 
    Sets the padding parameters if they are undefined.
 public  void setPadding_bottom(float padding_bottom) 
 public  void setPadding_left(float padding_left) 
 public  void setPadding_right(float padding_right) 
 public  void setPadding_top(float padding_top) 
 public  void setSpacing(float spacing) 
 public  void setSpacing_bottom(float spacing) 
 public  void setSpacing_left(float spacing) 
 public  void setSpacing_right(float spacing) 
 public  void setSpacing_top(float spacing) 
 public  void setUseAscender(boolean useAscender) 
 public  void setUseBorderPadding(boolean useBorderPadding) 
 public  void setUseDescender(boolean useDescender) 
 public  void setVerticalAlignment(int verticalAlignment) 
 public  void setWidth(float width) 
 public  void setWidthpercentage(float widthpercentage) 
 public int type()