本文整理汇总了Java中com.itextpdf.text.pdf.PdfPCell.setBorderWidthBottom方法的典型用法代码示例。如果您正苦于以下问题:Java PdfPCell.setBorderWidthBottom方法的具体用法?Java PdfPCell.setBorderWidthBottom怎么用?Java PdfPCell.setBorderWidthBottom使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.itextpdf.text.pdf.PdfPCell
的用法示例。
在下文中一共展示了PdfPCell.setBorderWidthBottom方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: writeCommentsSection
import com.itextpdf.text.pdf.PdfPCell; //导入方法依赖的package包/类
private void writeCommentsSection(final PdfPTable table,
final Font baseFont,
final int height) {
PdfPCell commentLabel = null;
PdfPCell emptySpace = null;
Font font = new Font(baseFont);
font.setStyle(Font.ITALIC);
// This is the 'Comments' section at the bottom of every table for the judge
// to write in
commentLabel = createCell("Comments:", font, NO_BORDERS);
commentLabel.setRotation(90);
commentLabel.setRowspan(1);
commentLabel.setBorderWidthLeft(0);
commentLabel.setBorderWidthBottom(0);
commentLabel.setHorizontalAlignment(Element.ALIGN_CENTER);
commentLabel.setVerticalAlignment(Element.ALIGN_CENTER);
emptySpace = createCell(" ", font, TOP_ONLY);
emptySpace.setMinimumHeight(18f);
table.addCell(commentLabel);
// Need to add the empty cells so the row is complete and is displayed in
// the pdf
for (int i1 = 0; i1 < 5; i1++) {
table.addCell(emptySpace);
}
emptySpace = createCell(" ", font, NO_BORDERS);
for (int i2 = 0; i2 < height; i2++) {
for (int i3 = 0; i3 < 6; i3++) {
table.addCell(emptySpace);
}
}
}
示例2: generateTableOfContentsKey
import com.itextpdf.text.pdf.PdfPCell; //导入方法依赖的package包/类
private PdfPCell generateTableOfContentsKey(String key) throws IOException, DocumentException {
PdfPCell cell = new PdfPCell(PhraseUtil.phrase(key, 12, Font.BOLD));
cell.setBorder(0);
cell.setBorderWidthBottom(1);
cell.setBorderColor(BaseColor.LIGHT_GRAY);
cell.setHorizontalAlignment(Element.ALIGN_RIGHT);
cell.setPaddingBottom(3);
return cell;
}
示例3: addTotalRow
import com.itextpdf.text.pdf.PdfPCell; //导入方法依赖的package包/类
/**
* Adds a total row to the table.
*
* @param table
* the table.
* @param contents
* the columns contents.
* @param font
* the font to use.
* @param borderTop
* the border top width.
* @param borderBottom
* the border bottom width.
*/
private static void addTotalRow(PdfPTable table, Object[] contents, Font font, float borderTop,
float borderBottom) {
PdfPCell labelCell = ReportServiceHelper.createTableCell(contents[0], font, null,
ReportServiceHelper.PDF_ALIGN_RIGHT, null, 2);
labelCell.setBorderWidth(0);
labelCell.setBorderWidthTop(borderTop);
labelCell.setBorderWidthBottom(borderBottom);
table.addCell(labelCell);
PdfPCell numberCell = ReportServiceHelper.createTableCell(contents[1], font, null,
ReportServiceHelper.PDF_ALIGN_RIGHT, null, 1);
numberCell.setBorderWidth(0);
numberCell.setBorderWidthTop(borderTop);
numberCell.setBorderWidthBottom(borderBottom);
table.addCell(numberCell);
PdfPCell totalCell = ReportServiceHelper.createTableCell(contents.length == 3 ? contents[2] : null, font, null,
ReportServiceHelper.PDF_ALIGN_RIGHT, null, 1);
totalCell.setBorderWidth(0);
totalCell.setBorderWidthTop(borderTop);
totalCell.setBorderWidthBottom(borderBottom);
table.addCell(totalCell);
PdfPCell emptyCell = ReportServiceHelper.createEmptyPdfCell(1, null);
emptyCell.setBorderWidth(0);
emptyCell.setBorderWidthTop(borderTop);
emptyCell.setBorderWidthBottom(borderBottom);
table.addCell(emptyCell);
}
开发者ID:NASA-Tournament-Lab,项目名称:CoECI-OPM-Service-Credit-Redeposit-Deposit-Application,代码行数:44,代码来源:BalancedScorecardPaymentReportService.java
示例4: setStyleRodape
import com.itextpdf.text.pdf.PdfPCell; //导入方法依赖的package包/类
private void setStyleRodape(PdfPCell cellRodape) {
cellRodape.setBorderWidthBottom(0.5f);
cellRodape.setPadding(2f);
cellRodape.setPaddingLeft(0.8f);
cellRodape.setPaddingRight(0.8f);
}