本文整理了Java中com.lowagie.text.Paragraph.getAlignment()
方法的一些代码示例,展示了Paragraph.getAlignment()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Paragraph.getAlignment()
方法的具体详情如下:
包路径:com.lowagie.text.Paragraph
类名称:Paragraph
方法名:getAlignment
[英]Gets the alignment of this paragraph.
[中]获取此段落的对齐方式。
代码示例来源:origin: fr.opensagres.xdocreport.itext-gae/itext-gae
writeStart(HtmlTags.H[depth]);
write(section.getTitle().getFont(), styleAttributes);
String alignment = HtmlEncoder.getAlignment(section.getTitle().getAlignment());
if (!"".equals(alignment)) {
write(HtmlTags.ALIGN, alignment);
代码示例来源:origin: com.github.librepdf/pdf-html
writeStart(HtmlTags.H[depth]);
write(section.getTitle().getFont(), styleAttributes);
String alignment = HtmlEncoder.getAlignment(section.getTitle().getAlignment());
if (!"".equals(alignment)) {
write(HtmlTags.ALIGN, alignment);
代码示例来源:origin: es.gob.afirma/afirma-crypto-pdf-itext
writeStart(HtmlTags.H[depth]);
write(section.getTitle().getFont(), styleAttributes);
String alignment = HtmlEncoder.getAlignment(section.getTitle().getAlignment());
if (!"".equals(alignment)) {
write(HtmlTags.ALIGN, alignment);
代码示例来源:origin: org.jboss.itext/itext-rtf
if (element instanceof Paragraph && ((Paragraph) element).getAlignment() == Element.ALIGN_UNDEFINED) {
((Paragraph) element).setAlignment(cell.getHorizontalAlignment());
代码示例来源:origin: pentaho/pentaho-reporting
if ( element instanceof Paragraph && ( (Paragraph) element ).getAlignment() == Element.ALIGN_UNDEFINED ) {
( (Paragraph) element ).setAlignment( cell.getHorizontalAlignment() );
代码示例来源:origin: com.github.bengolder/pdf-rtf
if (element instanceof Paragraph && ((Paragraph) element).getAlignment() == Element.ALIGN_UNDEFINED) {
((Paragraph) element).setAlignment(cell.getHorizontalAlignment());
代码示例来源:origin: es.gob.afirma/afirma-crypto-pdf-itext
compositeColumn = new ColumnText(canvas);
compositeColumn.setUseAscender(firstPass ? useAscender : false);
compositeColumn.setAlignment(para.getAlignment());
compositeColumn.setIndent(para.getIndentationLeft() + para.getFirstLineIndent());
compositeColumn.setExtraParagraphSpace(para.getExtraParagraphSpace());
代码示例来源:origin: com.github.librepdf/openpdf
compositeColumn = new ColumnText(canvas);
compositeColumn.setUseAscender(firstPass && useAscender);
compositeColumn.setAlignment(para.getAlignment());
compositeColumn.setIndent(para.getIndentationLeft() + para.getFirstLineIndent());
compositeColumn.setExtraParagraphSpace(para.getExtraParagraphSpace());
代码示例来源:origin: fr.opensagres.xdocreport.itext-gae/itext-gae
compositeColumn = new ColumnText(canvas);
compositeColumn.setUseAscender(firstPass ? useAscender : false);
compositeColumn.setAlignment(para.getAlignment());
compositeColumn.setIndent(para.getIndentationLeft() + para.getFirstLineIndent());
compositeColumn.setExtraParagraphSpace(para.getExtraParagraphSpace());
代码示例来源:origin: com.github.librepdf/pdf-html
writeStart(HtmlTags.DIV);
writeMarkupAttributes(markup);
String alignment = HtmlEncoder.getAlignment(paragraph.getAlignment());
if (!"".equals(alignment)) {
write(HtmlTags.ALIGN, alignment);
代码示例来源:origin: fr.opensagres.xdocreport.itext-gae/itext-gae
writeStart(HtmlTags.DIV);
writeMarkupAttributes(markup);
String alignment = HtmlEncoder.getAlignment(paragraph.getAlignment());
if (!"".equals(alignment)) {
write(HtmlTags.ALIGN, alignment);
代码示例来源:origin: es.gob.afirma/afirma-crypto-pdf-itext
writeStart(HtmlTags.DIV);
writeMarkupAttributes(markup);
String alignment = HtmlEncoder.getAlignment(paragraph.getAlignment());
if (!"".equals(alignment)) {
write(HtmlTags.ALIGN, alignment);
代码示例来源:origin: com.github.bengolder/pdf-rtf
if (element instanceof Paragraph && ((Paragraph) element).getAlignment() == Element.ALIGN_UNDEFINED) {
((Paragraph) element).setAlignment(cell.getHorizontalAlignment());
代码示例来源:origin: pentaho/pentaho-reporting
if ( element instanceof Paragraph && ( (Paragraph) element ).getAlignment() == Element.ALIGN_UNDEFINED ) {
( (Paragraph) element ).setAlignment( cell.getHorizontalAlignment() );
代码示例来源:origin: org.jboss.itext/itext-rtf
if (element instanceof Paragraph && ((Paragraph) element).getAlignment() == Element.ALIGN_UNDEFINED) {
((Paragraph) element).setAlignment(cell.getHorizontalAlignment());
代码示例来源:origin: com.github.bengolder/pdf-rtf
baseFont = new RtfFont(this.document, paragraph.getFont());
this.paragraphStyle = new RtfParagraphStyle(this.document, this.document.getDocumentHeader().getRtfParagraphStyle("Normal"));
this.paragraphStyle.setAlignment(paragraph.getAlignment());
this.paragraphStyle.setFirstLineIndent((int) (paragraph.getFirstLineIndent() * RtfElement.TWIPS_FACTOR));
this.paragraphStyle.setIndentLeft((int) (paragraph.getIndentationLeft() * RtfElement.TWIPS_FACTOR));
代码示例来源:origin: org.jboss.itext/itext-rtf
baseFont = new RtfFont(this.document, paragraph.getFont());
this.paragraphStyle = new RtfParagraphStyle(this.document, this.document.getDocumentHeader().getRtfParagraphStyle("Normal"));
this.paragraphStyle.setAlignment(paragraph.getAlignment());
this.paragraphStyle.setFirstLineIndent((int) (paragraph.getFirstLineIndent() * RtfElement.TWIPS_FACTOR));
this.paragraphStyle.setIndentLeft((int) (paragraph.getIndentationLeft() * RtfElement.TWIPS_FACTOR));
代码示例来源:origin: es.gob.afirma/afirma-crypto-pdf-itext
alignment = paragraph.getAlignment();
leading = paragraph.getTotalLeading();
carriageReturn();
代码示例来源:origin: fr.opensagres.xdocreport.itext-gae/itext-gae
alignment = paragraph.getAlignment();
leading = paragraph.getTotalLeading();
carriageReturn();
代码示例来源:origin: com.github.librepdf/openpdf
alignment = paragraph.getAlignment();
leading = paragraph.getTotalLeading();
carriageReturn();
内容来源于网络,如有侵权,请联系作者删除!