use of com.itextpdf.text.Phrase in project trainning by fernandotomasio.
the class CustomTableManager method getPhraseCellCenterBold.
@Override
public PdfPCell getPhraseCellCenterBold(String content) {
PdfPCell c = new PdfPCell(new Phrase(ReportUtil.convertEncode(content), fontManager.getBoldFont()));
c.setLeading(12f, 0);
c.setPadding(5);
c.setHorizontalAlignment(Element.ALIGN_CENTER);
c.setVerticalAlignment(Element.ALIGN_MIDDLE);
return c;
}
use of com.itextpdf.text.Phrase in project trainning by fernandotomasio.
the class ICAERTableManager method getHeaderCell.
@Override
public PdfPCell getHeaderCell(String title) {
PdfPCell header = new PdfPCell(new Phrase(ReportUtil.convertEncode(title), fontManager.getDefaultFont()));
header.setHorizontalAlignment(Element.ALIGN_CENTER);
header.setVerticalAlignment(Element.ALIGN_MIDDLE);
return header;
}
use of com.itextpdf.text.Phrase in project trainning by fernandotomasio.
the class ICAERTableManager method getPhraseCellCenterBold.
@Override
public PdfPCell getPhraseCellCenterBold(String content) {
PdfPCell c = new PdfPCell(new Phrase(ReportUtil.convertEncode(content), fontManager.getBoldFont()));
c.setLeading(12f, 0);
c.setPadding(5);
c.setHorizontalAlignment(Element.ALIGN_CENTER);
c.setVerticalAlignment(Element.ALIGN_MIDDLE);
return c;
}
use of com.itextpdf.text.Phrase in project trainning by fernandotomasio.
the class ICAERTableManager method getPhraseCellLeft.
@Override
public PdfPCell getPhraseCellLeft(String content) {
PdfPCell c = new PdfPCell(new Phrase(ReportUtil.convertEncode(content), fontManager.getDefaultFont()));
c.setLeading(12f, 0);
c.setPadding(5);
c.setHorizontalAlignment(Element.ALIGN_LEFT);
c.setVerticalAlignment(Element.ALIGN_MIDDLE);
return c;
}
use of com.itextpdf.text.Phrase in project trainning by fernandotomasio.
the class ICAERTableManager method getPhraseCellRight.
@Override
public PdfPCell getPhraseCellRight(String content) {
PdfPCell c = new PdfPCell(new Phrase(ReportUtil.convertEncode(content), fontManager.getDefaultFont()));
c.setLeading(12f, 0);
c.setPadding(5);
c.setHorizontalAlignment(Element.ALIGN_RIGHT);
c.setVerticalAlignment(Element.ALIGN_MIDDLE);
return c;
}
Aggregations