gpt4 book ai didi

com.lowagie.text.ZapfDingbatsList类的使用及代码示例

转载 作者:知者 更新时间:2024-03-17 13:09:31 29 4
gpt4 key购买 nike

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

ZapfDingbatsList介绍

[英]A special-version of LIST which use zapfdingbats-letters.
[中]LIST的特殊版本,使用zapfdingbats字母。

代码示例

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

/**
   * Adds an <CODE>Object</CODE> to the <CODE>List</CODE>.
   *
   * @param    o    the object to add.
   * @return true if adding the object succeeded
   */
  public boolean add(Object o) {
    if (o instanceof ListItem) {
      ListItem item = (ListItem) o;
      Chunk chunk = new Chunk(preSymbol, symbol.getFont());
      chunk.append(String.valueOf((char)zn));
      chunk.append(postSymbol);
      item.setListSymbol(chunk);
      item.setIndentationLeft(symbolIndent, autoindent);
      item.setIndentationRight(0);
      list.add(item);
    } else if (o instanceof List) {
      List nested = (List) o;
      nested.setIndentationLeft(nested.getIndentationLeft() + symbolIndent);
      first--;
      return list.add(nested);
    } else if (o instanceof String) {
      return this.add(new ListItem((String) o));
    }
    return false;
  }
}

代码示例来源:origin: org.jboss.seam/jboss-seam-pdf

list = new ZapfDingbatsList(charNumber, (int) indent);

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

/**
   * Adds an <CODE>Object</CODE> to the <CODE>List</CODE>.
   *
   * @param    o    the object to add.
   * @return true if adding the object succeeded
   */
  public boolean add(Object o) {
    if (o instanceof ListItem) {
      ListItem item = (ListItem) o;
      Chunk chunk = new Chunk(preSymbol, symbol.getFont());
      chunk.append(String.valueOf((char)zn));
      chunk.append(postSymbol);
      item.setListSymbol(chunk);
      item.setIndentationLeft(symbolIndent, autoindent);
      item.setIndentationRight(0);
      list.add(item);
    } else if (o instanceof List) {
      List nested = (List) o;
      nested.setIndentationLeft(nested.getIndentationLeft() + symbolIndent);
      first--;
      return list.add(nested);
    } else if (o instanceof String) {
      return this.add(new ListItem((String) o));
    }
    return false;
  }
}

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

/**
   * Adds an <CODE>Object</CODE> to the <CODE>List</CODE>.
   *
   * @param    o    the object to add.
   * @return true if adding the object succeeded
   */
  public boolean add(Object o) {
    if (o instanceof ListItem) {
      ListItem item = (ListItem) o;
      Chunk chunk = new Chunk(preSymbol, symbol.getFont());
      chunk.append(String.valueOf((char)zn));
      chunk.append(postSymbol);
      item.setListSymbol(chunk);
      item.setIndentationLeft(symbolIndent, autoindent);
      item.setIndentationRight(0);
      list.add(item);
    } else if (o instanceof List) {
      List nested = (List) o;
      nested.setIndentationLeft(nested.getIndentationLeft() + symbolIndent);
      first--;
      return list.add(nested);
    } else if (o instanceof String) {
      return this.add(new ListItem((String) o));
    }
    return false;
  }
}

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com