List of usage examples for com.itextpdf.text.pdf PdfPCell setGrayFill
public void setGrayFill(final float value)
From source file:pipe.PdfMaker.java
private Element eightthElement(String applikation, String tabak) { float leading = 9f; PdfPTable table = new PdfPTable(2); table.setWidthPercentage(100f);//from w w w . ja va2 s.c om 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);/*from www .j a v a 2 s .c o 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);//from w w w .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);//from w ww .j a v a 2s . co 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);//ww w. j a v a 2 s .c o 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; }
From source file:pipe.PdfMaker.java
private Element thirteenthElement(String gewicht, String farbe) { float leading = 9f; PdfPTable table = new PdfPTable(2); table.setWidthPercentage(100f);/* www . j a va 2 s. c o m*/ PdfPCell cell; cell = new PdfPCell(new Paragraph("Gewicht", arialSmall)); cell.setPadding(2); cell.setGrayFill(0.85f); cell.setBorderWidth(0.3f); table.addCell(cell); cell = new PdfPCell(new Paragraph("Farbe", 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(18f); Paragraph mundMatInfo = new Paragraph(gewicht, courier); mundMatInfo.setLeading(leading); cell.addElement(mundMatInfo); table.addCell(cell); cell = new PdfPCell(); cell.setPadding(2); cell.setBorderWidth(0.3f); cell.setFixedHeight(18f); Paragraph modellInfo = new Paragraph(farbe, courier); modellInfo.setLeading(leading); cell.addElement(modellInfo); table.addCell(cell); return table; }
From source file:pipe.PdfMaker.java
private Element fourteenthElement(String zustand, String lagerort) { float leading = 9f; PdfPTable table = new PdfPTable(2); table.setWidthPercentage(100f);/*from ww w .ja v a2s . c o m*/ PdfPCell cell; cell = new PdfPCell(new Paragraph("Zustand", arialSmall)); cell.setPadding(2); cell.setGrayFill(0.85f); cell.setBorderWidth(0.3f); table.addCell(cell); cell = new PdfPCell(new Paragraph("Lagerort", 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(18f); Paragraph mundMatInfo = new Paragraph(zustand, courier); mundMatInfo.setLeading(leading); cell.addElement(mundMatInfo); table.addCell(cell); cell = new PdfPCell(); cell.setPadding(2); cell.setBorderWidth(0.3f); cell.setFixedHeight(18f); Paragraph modellInfo = new Paragraph(lagerort, courier); modellInfo.setLeading(leading); cell.addElement(modellInfo); table.addCell(cell); return table; }
From source file:pipe.PdfMaker.java
private Element fifteenthElement(String besonderes) { float leading = 9f; PdfPTable table = new PdfPTable(1); table.setWidthPercentage(100f);//from w w w. j a v a2 s .c om PdfPCell cell; cell = new PdfPCell(new Paragraph("Besonderes", arialSmall)); cell.setPadding(2); cell.setGrayFill(0.85f); cell.setBorderWidth(0.3f); table.addCell(cell); cell = new PdfPCell(); cell.setPadding(2); cell.setBorderWidth(0.3f); cell.setFixedHeight(30f); Paragraph herstellerInfo = new Paragraph(besonderes, courier); herstellerInfo.setLeading(leading); cell.addElement(herstellerInfo); table.addCell(cell); return table; }
From source file:printers.AbstractHorariosPrinter.java
License:Open Source License
private PdfPCell createCeldaHoras(String texto) { Font font = new Font(Font.FontFamily.HELVETICA, 10); Paragraph p = new Paragraph(texto, font); p.setAlignment(Paragraph.ALIGN_CENTER); PdfPCell c = new PdfPCell(p); c.setHorizontalAlignment(PdfPCell.ALIGN_CENTER); c.setVerticalAlignment(PdfPCell.ALIGN_MIDDLE); c.setGrayFill(.9f); c.setNoWrap(true);// w w w.j av a 2 s. c o m c.setFixedHeight(alturaCeldas); return c; }
From source file:printers.AbstractHorariosPrinter.java
License:Open Source License
private PdfPCell createCeldaDiasSemana(String texto) { Font font = new Font(Font.FontFamily.HELVETICA, 14); Paragraph p = new Paragraph(texto, font); p.setAlignment(Paragraph.ALIGN_CENTER); PdfPCell c = new PdfPCell(p); c.setGrayFill(.9f); c.setHorizontalAlignment(PdfPCell.ALIGN_CENTER); c.setVerticalAlignment(PdfPCell.ALIGN_CENTER); return c;//from w w w.j a v a2 s . co m }