/** * Setter for property paddingTop. * * @param paddingTop New value of property paddingTop. */ public void setBorderPaddingTop( float paddingTop ) { getWrapperCell().setPaddingTop( paddingTop ); }
/** * Setter for property paddingTop. * * @param paddingTop New value of property paddingTop. */ public void setPaddingTop( float paddingTop ) { getWrapperCell().setPaddingTop( paddingTop ); }
public static void headerCellStyle(PdfPCell cell){ // alignment cell.setHorizontalAlignment(Element.ALIGN_CENTER); // padding cell.setPaddingTop(0f); cell.setPaddingBottom(7f); // background color cell.setBackgroundColor(new BaseColor(0,121,182)); // border cell.setBorder(0); cell.setBorderWidthBottom(2f); } public static void labelCellStyle(PdfPCell cell){
public static void valueCellStyle(PdfPCell cell){ // alignment cell.setHorizontalAlignment(Element.ALIGN_CENTER); cell.setVerticalAlignment(Element.ALIGN_MIDDLE); // padding cell.setPaddingTop(0f); cell.setPaddingBottom(5f); // border cell.setBorder(0); cell.setBorderWidthBottom(0.5f); // height cell.setMinimumHeight(18f); } }
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); }
cell.setBorderColor(BaseColor.LIGHT_GRAY); cell.setBorder(Rectangle.TOP + Rectangle.BOTTOM); cell.setPaddingTop(10f); cell.setPaddingBottom(10f); cellSymbol.setBorderColor(BaseColor.LIGHT_GRAY); cellSymbol.setBorder(Rectangle.TOP + Rectangle.BOTTOM); cellSymbol.setPaddingTop(10f); cellSymbol.setPaddingBottom(10f); cellSymbol.setPaddingLeft(0f);
cellSymbol.setBorderWidthRight(1.0f); cellSymbol.setBorderColorRight(color); cellSymbol.setPaddingTop(0f); cellSymbol.setPaddingBottom(5f); cellSymbol.setPaddingLeft(10f);