/** * Setter for property paddingLeft. * * @param paddingLeft New value of property paddingLeft. */ public void setPaddingLeft( float paddingLeft ) { getWrapperCell().setPaddingLeft( paddingLeft ); }
/** * Setter for property paddingLeft. * * @param paddingLeft New value of property paddingLeft. */ public void setBorderPaddingLeft( float paddingLeft ) { getWrapperCell().setPaddingLeft( paddingLeft ); }
private static PdfPCell createCell(final Phrase text, final int index, final BaseColor bgColor) { final PdfPCell cell = new PdfPCell(text); cell.setHorizontalAlignment(index == 0 ? Element.ALIGN_LEFT : Element.ALIGN_RIGHT); cell.setVerticalAlignment(Element.ALIGN_MIDDLE); cell.setBackgroundColor(bgColor); cell.setBorderWidth(0); cell.setPaddingBottom(PADDING_BOTTOM); cell.setPaddingTop(PADDING_TOP); cell.setPaddingLeft(PADDING_LEFT); cell.setPaddingRight(PADDING_RIGHT); return cell; }
public static void labelCellStyle(PdfPCell cell){ // alignment cell.setHorizontalAlignment(Element.ALIGN_LEFT); cell.setVerticalAlignment(Element.ALIGN_MIDDLE); // padding cell.setPaddingLeft(3f); cell.setPaddingTop(0f); // background color cell.setBackgroundColor(BaseColor.LIGHT_GRAY); // border cell.setBorder(0); cell.setBorderWidthBottom(1); cell.setBorderColorBottom(BaseColor.GRAY); // height cell.setMinimumHeight(18f); }
outerCell.setPaddingLeft( getIndentationLeft() ); setIndentationLeft( 0.0f ); outerCell.setPaddingRight( getIndentationRight() );
cellSymbol.setPaddingTop(0f); cellSymbol.setPaddingBottom(5f); cellSymbol.setPaddingLeft(10f); cellSymbol.setPaddingRight(0f);
cellSymbol.setPaddingTop(10f); cellSymbol.setPaddingBottom(10f); cellSymbol.setPaddingLeft(0f); cellSymbol.setPaddingRight(10f);