List of usage examples for com.itextpdf.text.pdf PdfPTable BACKGROUNDCANVAS
int BACKGROUNDCANVAS
To view the source code for com.itextpdf.text.pdf PdfPTable BACKGROUNDCANVAS.
Click Source Link
PdfContentByte
where the background will be drawn. From source file:com.vectorprint.report.itext.debug.CellAndTableDebugger.java
License:Open Source License
@Override public void cellLayout(PdfPCell cell, Rectangle position, PdfContentByte[] canvases) { if (colorToDebug != null) { DebugHelper.debugBackground(canvases[PdfPTable.BACKGROUNDCANVAS], position, colorToDebug, "bg", getSettings(), ds.getLm()); }// w w w .j a v a 2 s .c om DebugHelper.debugRect(canvases[PdfPTable.TEXTCANVAS], position, new float[] { 2, 2 }, 0.3f, getSettings(), ds.getLm()); DebugHelper.styleLink(canvases[PdfPTable.TEXTCANVAS], DebugHelper.getFirstNotDefaultStyleClass(styleSetup), " (cell event)", position.getLeft(), position.getTop(), getSettings(), ds.getLm()); }
From source file:com.vectorprint.report.itext.style.ZebraStripes.java
License:Open Source License
protected void paintRow(int row, Rectangle rect, PdfContentByte[] canvases, boolean last, boolean first) { if (settings.getBooleanProperty(false, DEBUG)) { DebugHelper.debugBackground(canvases[PdfPTable.BACKGROUNDCANVAS], rect, itextHelper.fromColor(rowBackgroundColor), "zebra", settings, layerManager); return;//w w w . j av a2 s . com } rect.setBackgroundColor(itextHelper.fromColor(rowBackgroundColor)); rect.setBorder(Rectangle.NO_BORDER); canvases[PdfPTable.BACKGROUNDCANVAS].rectangle(rect); }