List of usage examples for com.itextpdf.text.pdf PdfPCell setBorderWidth
public void setBorderWidth(final float borderWidth)
From source file:pipe.PdfMaker.java
/** * Creates new cells/*w ww. j a va 2s. c o m*/ * * @param colspan * @param rowspan * @return */ private PdfPCell createCell(int colspan, int rowspan) { PdfPCell cell = new PdfPCell(); cell.setPadding(0); cell.setBorderWidth(0.3f); cell.setColspan(colspan); cell.setRowspan(rowspan); return cell; }
From source file:pipe.PdfMaker.java
private Element thirdElement(String hersteller, String modell) { float leading = 9f; PdfPTable table = new PdfPTable(2); table.setWidthPercentage(100f);/* w w w. j a v a 2 s. com*/ PdfPCell cell; cell = new PdfPCell(new Paragraph("Hersteller", arialSmall)); cell.setPadding(2); cell.setGrayFill(0.85f); cell.setBorderWidth(0.3f); table.addCell(cell); cell = new PdfPCell(new Paragraph("Modell", arialSmall)); cell.setPadding(2); cell.setBorderWidth(0.3f); cell.setGrayFill(0.85f); table.addCell(cell); cell = new PdfPCell(); cell.setPadding(2); cell.setBorderWidth(0.3f); cell.setFixedHeight(30f); Paragraph herstellerInfo = new Paragraph(hersteller, courier); herstellerInfo.setLeading(leading); cell.addElement(herstellerInfo); table.addCell(cell); cell = new PdfPCell(); cell.setPadding(2); cell.setBorderWidth(0.3f); cell.setFixedHeight(30f); Paragraph modellInfo = new Paragraph(modell, courier); modellInfo.setLeading(leading); cell.addElement(modellInfo); table.addCell(cell); return table; }
From source file:pipe.PdfMaker.java
private Element fifthElement(String land, String edition, String jahr) { float leading = 9f; PdfPTable table = new PdfPTable(3); table.setWidthPercentage(100f);//from w ww.j a v a 2 s . c om PdfPCell cell; //Hier die Header zuerst cell = new PdfPCell(new Paragraph("Land", arialSmall)); cell.setPadding(2); cell.setGrayFill(0.85f); cell.setBorderWidth(0.3f); table.addCell(cell); cell = new PdfPCell(new Paragraph("Edition", arialSmall)); cell.setPadding(2); cell.setGrayFill(0.85f); cell.setBorderWidth(0.3f); table.addCell(cell); cell = new PdfPCell(new Paragraph("Jahr", arialSmall)); cell.setPadding(2); cell.setGrayFill(0.85f); cell.setBorderWidth(0.3f); table.addCell(cell); //Ab hier die Werte cell = new PdfPCell(); cell.setPadding(2); cell.setBorderWidth(0.3f); Paragraph herkunftInfo = new Paragraph(land, courier); herkunftInfo.setLeading(leading); cell.addElement(herkunftInfo); table.addCell(cell); cell = new PdfPCell(); cell.setPadding(2); cell.setBorderWidth(0.3f); Paragraph editionInfo = new Paragraph(edition, courier); editionInfo.setLeading(leading); cell.addElement(editionInfo); table.addCell(cell); cell = new PdfPCell(); cell.setBorderWidth(0.3f); cell.setFixedHeight(30f); Paragraph yearInfo = new Paragraph(jahr, courier); yearInfo.setLeading(leading); cell.addElement(yearInfo); table.addCell(cell); return table; }
From source file:pipe.PdfMaker.java
private Element sixthElement(String grundform, String mundstck) { float leading = 9f; PdfPTable table = new PdfPTable(2); table.setWidthPercentage(100f);/*from w w w . j av a 2 s .c o m*/ PdfPCell cell; cell = new PdfPCell(new Paragraph("Grundform", arialSmall)); cell.setPadding(2); cell.setGrayFill(0.85f); cell.setBorderWidth(0.3f); table.addCell(cell); cell = new PdfPCell(new Paragraph("Mundstck", arialSmall)); cell.setPadding(2); cell.setBorderWidth(0.3f); cell.setGrayFill(0.85f); table.addCell(cell); cell = new PdfPCell(); cell.setPadding(2); cell.setBorderWidth(0.3f); cell.setFixedHeight(30f); Paragraph herstellerInfo = new Paragraph(grundform, courier); herstellerInfo.setLeading(leading); cell.addElement(herstellerInfo); table.addCell(cell); cell = new PdfPCell(); cell.setPadding(2); cell.setBorderWidth(0.3f); cell.setFixedHeight(30f); Paragraph modellInfo = new Paragraph(mundstck, courier); modellInfo.setLeading(leading); cell.addElement(modellInfo); table.addCell(cell); return table; }
From source file:pipe.PdfMaker.java
private Element seventhElement(String kopfmat, String mundmat) { float leading = 9f; PdfPTable table = new PdfPTable(2); table.setWidthPercentage(100f);/*from w ww .ja v a 2 s.com*/ PdfPCell cell; cell = new PdfPCell(new Paragraph("Kopfmaterial", arialSmall)); cell.setPadding(2); cell.setGrayFill(0.85f); cell.setBorderWidth(0.3f); table.addCell(cell); cell = new PdfPCell(new Paragraph("Material Mundstck", arialSmall)); cell.setPadding(2); cell.setBorderWidth(0.3f); cell.setGrayFill(0.85f); table.addCell(cell); cell = new PdfPCell(); cell.setPadding(2); cell.setBorderWidth(0.3f); cell.setFixedHeight(30f); Paragraph mundMatInfo = new Paragraph(kopfmat, courier); mundMatInfo.setLeading(leading); cell.addElement(mundMatInfo); table.addCell(cell); cell = new PdfPCell(); cell.setPadding(2); cell.setBorderWidth(0.3f); cell.setFixedHeight(30f); Paragraph modellInfo = new Paragraph(mundmat, courier); modellInfo.setLeading(leading); cell.addElement(modellInfo); table.addCell(cell); return table; }
From source file:pipe.PdfMaker.java
private Element eightthElement(String applikation, String tabak) { float leading = 9f; PdfPTable table = new PdfPTable(2); table.setWidthPercentage(100f);// w w w. j a va2 s . c o m PdfPCell cell; cell = new PdfPCell(new Paragraph("Applikation", arialSmall)); cell.setPadding(2); cell.setGrayFill(0.85f); cell.setBorderWidth(0.3f); table.addCell(cell); cell = new PdfPCell(new Paragraph("Eingerauchter Tabak", arialSmall)); cell.setPadding(2); cell.setBorderWidth(0.3f); cell.setGrayFill(0.85f); table.addCell(cell); cell = new PdfPCell(); cell.setPadding(2); cell.setBorderWidth(0.3f); cell.setFixedHeight(30f); Paragraph mundMatInfo = new Paragraph(applikation, courier); mundMatInfo.setLeading(leading); cell.addElement(mundMatInfo); table.addCell(cell); cell = new PdfPCell(); cell.setPadding(2); cell.setBorderWidth(0.3f); cell.setFixedHeight(30f); Paragraph modellInfo = new Paragraph(tabak, courier); modellInfo.setLeading(leading); cell.addElement(modellInfo); table.addCell(cell); return table; }
From source file:pipe.PdfMaker.java
private Element ninethElement(String kaufpreis, String gekauft_bei, String datum) { float leading = 9f; PdfPTable table = new PdfPTable(3); table.setWidthPercentage(100f);//ww w . jav a 2 s.co m PdfPCell cell; //Hier die Header zuerst cell = new PdfPCell(new Paragraph("Einstandspreis", arialSmall)); cell.setPadding(2); cell.setGrayFill(0.85f); cell.setBorderWidth(0.3f); table.addCell(cell); cell = new PdfPCell(new Paragraph("Gekauft bei / von", arialSmall)); cell.setPadding(2); cell.setGrayFill(0.85f); cell.setBorderWidth(0.3f); table.addCell(cell); cell = new PdfPCell(new Paragraph("Kaufdatum", arialSmall)); cell.setPadding(2); cell.setGrayFill(0.85f); cell.setBorderWidth(0.3f); table.addCell(cell); //Ab hier die Werte cell = new PdfPCell(); cell.setPadding(2); cell.setBorderWidth(0.3f); Paragraph herkunftInfo = new Paragraph(kaufpreis, courier); herkunftInfo.setLeading(leading); cell.addElement(herkunftInfo); table.addCell(cell); cell = new PdfPCell(); cell.setPadding(2); cell.setBorderWidth(0.3f); Paragraph editionInfo = new Paragraph(gekauft_bei, courier); editionInfo.setLeading(leading); cell.addElement(editionInfo); table.addCell(cell); cell = new PdfPCell(); cell.setBorderWidth(0.3f); cell.setFixedHeight(30f); Paragraph yearInfo = new Paragraph(datum, courier); yearInfo.setLeading(leading); cell.addElement(yearInfo); table.addCell(cell); return table; }
From source file:pipe.PdfMaker.java
private Element tenthElement(String verkaufspreis, String verkauft_an, String datum) { float leading = 9f; PdfPTable table = new PdfPTable(3); table.setWidthPercentage(100f);/*w ww .j av a 2 s.c o m*/ PdfPCell cell; //Hier die Header zuerst cell = new PdfPCell(new Paragraph("Verkaufspreis", arialSmall)); cell.setPadding(2); cell.setGrayFill(0.85f); cell.setBorderWidth(0.3f); table.addCell(cell); cell = new PdfPCell(new Paragraph("Verkauft an", arialSmall)); cell.setPadding(2); cell.setGrayFill(0.85f); cell.setBorderWidth(0.3f); table.addCell(cell); cell = new PdfPCell(new Paragraph("Verkaufsdatum", arialSmall)); cell.setPadding(2); cell.setGrayFill(0.85f); cell.setBorderWidth(0.3f); table.addCell(cell); //Ab hier die Werte cell = new PdfPCell(); cell.setPadding(2); cell.setBorderWidth(0.3f); Paragraph herkunftInfo = new Paragraph(verkaufspreis, courier); herkunftInfo.setLeading(leading); cell.addElement(herkunftInfo); table.addCell(cell); cell = new PdfPCell(); cell.setPadding(2); cell.setBorderWidth(0.3f); Paragraph editionInfo = new Paragraph(verkauft_an, courier); editionInfo.setLeading(leading); cell.addElement(editionInfo); table.addCell(cell); cell = new PdfPCell(); cell.setBorderWidth(0.3f); cell.setFixedHeight(30f); Paragraph yearInfo = new Paragraph(datum, courier); yearInfo.setLeading(leading); cell.addElement(yearInfo); table.addCell(cell); return table; }
From source file:pipe.PdfMaker.java
private Element eleventhElement(String oberflaeche, String bohrung, String filter) { float leading = 9f; PdfPTable table = new PdfPTable(3); table.setWidthPercentage(100f);/*w w w .j a va 2 s . c o m*/ PdfPCell cell; //Hier die Header zuerst cell = new PdfPCell(new Paragraph("Oberflche", arialSmall)); cell.setPadding(2); cell.setGrayFill(0.85f); cell.setBorderWidth(0.3f); table.addCell(cell); cell = new PdfPCell(new Paragraph("Bohrung", arialSmall)); cell.setPadding(2); cell.setGrayFill(0.85f); cell.setBorderWidth(0.3f); table.addCell(cell); cell = new PdfPCell(new Paragraph("Filter", arialSmall)); cell.setPadding(2); cell.setGrayFill(0.85f); cell.setBorderWidth(0.3f); table.addCell(cell); //Ab hier die Werte cell = new PdfPCell(); cell.setPadding(2); cell.setBorderWidth(0.3f); Paragraph herkunftInfo = new Paragraph(oberflaeche, courier); herkunftInfo.setLeading(leading); cell.addElement(herkunftInfo); table.addCell(cell); cell = new PdfPCell(); cell.setPadding(2); cell.setBorderWidth(0.3f); Paragraph editionInfo = new Paragraph(bohrung, courier); editionInfo.setLeading(leading); cell.addElement(editionInfo); table.addCell(cell); cell = new PdfPCell(); cell.setBorderWidth(0.3f); cell.setFixedHeight(18f); Paragraph yearInfo = new Paragraph(filter, courier); yearInfo.setLeading(leading); cell.addElement(yearInfo); table.addCell(cell); return table; }
From source file:pipe.PdfMaker.java
private Element twelvethElement(String laenge, String kopfhoehe, String kopfdurchmesser) { float leading = 9f; PdfPTable table = new PdfPTable(3); table.setWidthPercentage(100f);//from w ww . j av a 2s . co m PdfPCell cell; //Hier die Header zuerst cell = new PdfPCell(new Paragraph("Lnge", arialSmall)); cell.setPadding(2); cell.setGrayFill(0.85f); cell.setBorderWidth(0.3f); table.addCell(cell); cell = new PdfPCell(new Paragraph("Kopfhhe", arialSmall)); cell.setPadding(2); cell.setGrayFill(0.85f); cell.setBorderWidth(0.3f); table.addCell(cell); cell = new PdfPCell(new Paragraph("Kopfdurchmesser", arialSmall)); cell.setPadding(2); cell.setGrayFill(0.85f); cell.setBorderWidth(0.3f); table.addCell(cell); //Ab hier die Werte cell = new PdfPCell(); cell.setPadding(2); cell.setBorderWidth(0.3f); Paragraph herkunftInfo = new Paragraph(laenge, courier); herkunftInfo.setLeading(leading); cell.addElement(herkunftInfo); table.addCell(cell); cell = new PdfPCell(); cell.setPadding(2); cell.setBorderWidth(0.3f); Paragraph editionInfo = new Paragraph(kopfhoehe, courier); editionInfo.setLeading(leading); cell.addElement(editionInfo); table.addCell(cell); cell = new PdfPCell(); cell.setBorderWidth(0.3f); cell.setFixedHeight(18f); Paragraph yearInfo = new Paragraph(kopfdurchmesser, courier); yearInfo.setLeading(leading); cell.addElement(yearInfo); table.addCell(cell); return table; }