table.setHorizontalAlignment(Element.ALIGN_LEFT); table.setWidthPercentage(25); table.getDefaultCell().setBorderWidth(0); table.addCell(new Phrase(I18N.getString("Network"), cellFont)); table.addCell(new Phrase(integerFormat.format(networkTimeMean) + " ms ("
PdfPCell cell = new PdfPCell(new Phrase(arabic_text, fontNormal)); cell.setVerticalAlignment(Element.ALIGN_TOP); cell.setBorderWidth(0); cell.setRunDirection(PdfWriter.RUN_DIRECTION_RTL); table.addCell(cell);
private void add2Cells(PdfPTable table, String key, String value) { PdfPCell cell; cell = new PdfPCell(new Paragraph(key)); cell.setHorizontalAlignment(Rectangle.ALIGN_RIGHT); cell.setBorderWidth(0f); table.addCell(cell); cell = new PdfPCell(new Paragraph(value)); cell.setHorizontalAlignment(Rectangle.ALIGN_LEFT); cell.setBorderWidth(0f); table.addCell(cell); }
/** * Creates a call with given font, alignments, and borderline * * @param contents * @param font * @param horizontalAlignment * @param verticalAlignment * @param borderLine * @return */ public PdfPCell createCell(String contents, Font font, int horizontalAlignment, int verticalAlignment, boolean borderLine) { if (contents == null) contents = ""; Phrase phr = new Phrase(contents, font); PdfPCell cell = new PdfPCell(phr); cell.setHorizontalAlignment(horizontalAlignment); if (!borderLine) { cell.setBorderWidth(0); } cell.setVerticalAlignment(verticalAlignment); return cell; }
if (value != null) border = Float.parseFloat(value); cell.setBorderWidth(border); value = props.getProperty("cellpadding"); if (value != null)
if (value != null) border = Float.parseFloat(value); cell.setBorderWidth(border); value = props.getProperty("cellpadding"); if (value != null)
if (value != null) border = Float.parseFloat(value); cell.setBorderWidth(border); value = props.getProperty("cellpadding"); if (value != null)
private PdfPCell createCell(String content, int alignment) { PdfPCell cell = new PdfPCell(); float border = 0.2f; cell.setPhrase(new Phrase(content, FontUtils.getDejavuRegular7Dark())); cell.setHorizontalAlignment(alignment); cell.setBorderWidth(border); cell.disableBorderSide(PdfPCell.RIGHT); cell.disableBorderSide(PdfPCell.LEFT); cell.setPadding(5); return cell; } }
private PdfPCell createCell(String content, int alignment) { PdfPCell cell = new PdfPCell(); float border = 0.2f; cell.setPhrase(new Phrase(content, FontUtils.getDejavuRegular7Dark())); cell.setHorizontalAlignment(alignment); cell.setBorderWidth(border); cell.disableBorderSide(PdfPCell.RIGHT); cell.disableBorderSide(PdfPCell.LEFT); cell.setPadding(5); return cell; }
c1.setHorizontalAlignment(Element.ALIGN_LEFT); c1.setColspan(1); c1.setBorderWidth(1); c1.setPaddingBottom(10); c1.setBorderColor(celalBorderColor); c1.setBorderWidth(1); c1.setColspan(2); c1.setPaddingBottom(10);
private PdfPCell createCell(String content, int alignment) { PdfPCell cell = new PdfPCell(); cell.setFixedHeight(30f); float border = 0.2f; cell.setPhrase(new Phrase(content, FontUtils.getDejavuRegular9Dark())); cell.setHorizontalAlignment(alignment); cell.setBorderWidth(border); cell.disableBorderSide(PdfPCell.RIGHT); cell.disableBorderSide(PdfPCell.LEFT); cell.setPadding(5); return cell; }
table.setHorizontalAlignment(Element.ALIGN_LEFT); table.setWidthPercentage(25); table.getDefaultCell().setBorderWidth(0); table.addCell(new Phrase(I18N.getString("Network"), cellFont)); table.addCell(new Phrase(integerFormat.format(networkTimeMean) + " ms ("
headerTable.setHorizontalAlignment(Element.ALIGN_CENTER); headerTable.setSplitLate(false); headerTable.getDefaultCell().setBorderWidth(0); headerTable.getDefaultCell().setHorizontalAlignment(Element.ALIGN_CENTER); headerTable.getDefaultCell().setVerticalAlignment(Element.ALIGN_CENTER); cell.setBorderWidth(0); nestedHeaderTable.addCell(cell); cell = new PdfPCell(p); cell.setHorizontalAlignment(Element.ALIGN_RIGHT); cell.setBorderWidth(0); nestedHeaderTable.addCell(cell); cell.setBorderWidth(0); headerTable.addCell(cell);
headerTable.setHorizontalAlignment(Element.ALIGN_CENTER); headerTable.getDefaultCell().setBorderWidth(0); headerTable.getDefaultCell().setHorizontalAlignment(Element.ALIGN_CENTER); headerTable.getDefaultCell().setVerticalAlignment(Element.ALIGN_CENTER); cell.setBorderWidth(0); cell.setHorizontalAlignment(Element.ALIGN_CENTER); headerTable.addCell(cell); p.add(new Chunk(po.getPurapDocumentIdentifier() + "\n", cour_10_normal)); cell = new PdfPCell(p); cell.setBorderWidth(0); headerTable.addCell(cell);
cell.setBorderWidth( 0.1f ); cell.setBorderColor( COLOR_CELLBORDER );
c.setBorder(img.getBorder()); c.setBorderColor(img.getBorderColor()); c.setBorderWidth(img.getBorderWidth()); c.setBackgroundColor(img.getBackgroundColor()); t.addCell(c);
c.setBorder(img.getBorder()); c.setBorderColor(img.getBorderColor()); c.setBorderWidth(img.getBorderWidth()); c.setBackgroundColor(img.getBackgroundColor()); t.addCell(c);
PdfPCell totalLabel = createCell(documentPdfHelper.getTotaLabel(locale), Element.ALIGN_LEFT); totalLabel.setColspan(headerWidths.length - 1); totalLabel.setBorderWidth(0.7f); positionsTable.addCell(totalLabel); PdfPCell totalValue = createCell(PositionDataProvider.totalValue(documentEntity), Element.ALIGN_RIGHT); totalValue.setBorderWidth(0.7f); positionsTable.addCell(totalValue); positionsTable.setSpacingAfter(20);
foot.getDefaultCell().setBorderWidth(0); foot.getDefaultCell().setHorizontalAlignment(Rectangle.ALIGN_CENTER); foot.getDefaultCell().setVerticalAlignment(Rectangle.ALIGN_BOTTOM);
cellBenefitting.setBorderWidth(0); rightTable.addCell(cellBenefitting);