com.lowagie.text.Paragraph.getLeading()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(3.7k)|赞(0)|评价(0)|浏览(131)

本文整理了Java中com.lowagie.text.Paragraph.getLeading()方法的一些代码示例,展示了Paragraph.getLeading()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Paragraph.getLeading()方法的具体详情如下:
包路径:com.lowagie.text.Paragraph
类名称:Paragraph
方法名:getLeading

Paragraph.getLeading介绍

暂无

代码示例

代码示例来源:origin: fr.opensagres.xdocreport.itext-gae/itext-gae

/**
 * Gets the total leading.
 * This method is based on the assumption that the
 * font of the Paragraph is the font of all the elements
 * that make part of the paragraph. This isn't necessarily
 * true.
 * @return the total leading (fixed and multiplied)
 */
public float getTotalLeading() {
  float m = font == null ?
      Font.DEFAULTSIZE * multipliedLeading : font.getCalculatedLeading(multipliedLeading);
  if (m > 0 && !hasLeading()) {
    return m;
  }
  return getLeading() + m;
}

代码示例来源:origin: es.gob.afirma/afirma-crypto-pdf-itext

/**
 * Gets the total leading.
 * This method is based on the assumption that the
 * font of the Paragraph is the font of all the elements
 * that make part of the paragraph. This isn't necessarily
 * true.
 * @return the total leading (fixed and multiplied)
 */
public float getTotalLeading() {
  float m = font == null ?
      Font.DEFAULTSIZE * multipliedLeading : font.getCalculatedLeading(multipliedLeading);
  if (m > 0 && !hasLeading()) {
    return m;
  }
  return getLeading() + m;
}

代码示例来源:origin: com.github.librepdf/openpdf

/**
 * Gets the total leading.
 * This method is based on the assumption that the
 * font of the Paragraph is the font of all the elements
 * that make part of the paragraph. This isn't necessarily
 * true.
 * @return the total leading (fixed and multiplied)
 */
public float getTotalLeading() {
  float m = font == null ?
      Font.DEFAULTSIZE * multipliedLeading : font.getCalculatedLeading(multipliedLeading);
  if (m > 0 && !hasLeading()) {
    return m;
  }
  return getLeading() + m;
}

代码示例来源:origin: com.github.librepdf/pdf-html

currentParagraph.add(new LineSeparator(hrSize, hrWidth, null, hrAlign, currentParagraph.getLeading()/2));
currentParagraph.add(Chunk.NEWLINE);
return;

代码示例来源:origin: fr.opensagres.xdocreport.itext-gae/itext-gae

currentParagraph.add(new LineSeparator(hrSize, hrWidth, null, hrAlign, currentParagraph.getLeading()/2));
currentParagraph.add(Chunk.NEWLINE);
return;

代码示例来源:origin: es.gob.afirma/afirma-crypto-pdf-itext

currentParagraph.add(new LineSeparator(hrSize, hrWidth, null, hrAlign, currentParagraph.getLeading()/2));
currentParagraph.add(Chunk.NEWLINE);
return;

代码示例来源:origin: es.gob.afirma/afirma-crypto-pdf-itext

compositeColumn.setFollowingIndent(para.getIndentationLeft());
compositeColumn.setRightIndent(para.getIndentationRight());
compositeColumn.setLeading(para.getLeading(), para.getMultipliedLeading());
compositeColumn.setRunDirection(runDirection);
compositeColumn.setArabicOptions(arabicOptions);

代码示例来源:origin: com.github.librepdf/openpdf

compositeColumn.setFollowingIndent(para.getIndentationLeft());
compositeColumn.setRightIndent(para.getIndentationRight());
compositeColumn.setLeading(para.getLeading(), para.getMultipliedLeading());
compositeColumn.setRunDirection(runDirection);
compositeColumn.setArabicOptions(arabicOptions);

代码示例来源:origin: fr.opensagres.xdocreport.itext-gae/itext-gae

compositeColumn.setFollowingIndent(para.getIndentationLeft());
compositeColumn.setRightIndent(para.getIndentationRight());
compositeColumn.setLeading(para.getLeading(), para.getMultipliedLeading());
compositeColumn.setRunDirection(runDirection);
compositeColumn.setArabicOptions(arabicOptions);

代码示例来源:origin: com.github.bengolder/pdf-rtf

this.paragraphStyle.setSpacingAfter((int) (paragraph.getSpacingAfter() * RtfElement.TWIPS_FACTOR));
if(paragraph.hasLeading()) {
  this.paragraphStyle.setLineLeading((int) (paragraph.getLeading() * RtfElement.TWIPS_FACTOR));

代码示例来源:origin: org.jboss.itext/itext-rtf

this.paragraphStyle.setSpacingAfter((int) (paragraph.getSpacingAfter() * RtfElement.TWIPS_FACTOR));
if(paragraph.hasLeading()) {
  this.paragraphStyle.setLineLeading((int) (paragraph.getLeading() * RtfElement.TWIPS_FACTOR));

相关文章