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

x33g5p2x  于2022-01-16 转载在 其他  
字(2.6k)|赞(0)|评价(0)|浏览(104)

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

Anchor.iterator介绍

暂无

代码示例

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

/**
 * Gets all the chunks in this element.
 *
 * @return    an <CODE>ArrayList</CODE>
 */
public ArrayList getChunks() {
  ArrayList tmp = new ArrayList();
  Chunk chunk;
  Iterator i = iterator();
  boolean localDestination = (reference != null && reference.startsWith("#"));
  boolean notGotoOK = true;
  while (i.hasNext()) {
    chunk = (Chunk) i.next();
    if (name != null && notGotoOK && !chunk.isEmpty()) {
      chunk.setLocalDestination(name);
      notGotoOK = false;
    }
    if (localDestination) {
      chunk.setLocalGoto(reference.substring(1));
    }
    else if (reference != null)
      chunk.setAnchor(reference);
    tmp.add(chunk);
  }
  return tmp;
}

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

/**
 * Gets all the chunks in this element.
 *
 * @return    an <CODE>ArrayList</CODE>
 */
public ArrayList getChunks() {
  ArrayList tmp = new ArrayList();
  Chunk chunk;
  Iterator i = iterator();
  boolean localDestination = (reference != null && reference.startsWith("#"));
  boolean notGotoOK = true;
  while (i.hasNext()) {
    chunk = (Chunk) i.next();
    if (name != null && notGotoOK && !chunk.isEmpty()) {
      chunk.setLocalDestination(name);
      notGotoOK = false;
    }
    if (localDestination) {
      chunk.setLocalGoto(reference.substring(1));
    }
    else if (reference != null)
      chunk.setAnchor(reference);
    tmp.add(chunk);
  }
  return tmp;
}

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

/**
 * Gets all the chunks in this element.
 *
 * @return    an <CODE>ArrayList</CODE>
 */
public ArrayList getChunks() {
  ArrayList tmp = new ArrayList();
  Chunk chunk;
  Iterator i = iterator();
  boolean localDestination = (reference != null && reference.startsWith("#"));
  boolean notGotoOK = true;
  while (i.hasNext()) {
    chunk = (Chunk) i.next();
    if (name != null && notGotoOK && !chunk.isEmpty()) {
      chunk.setLocalDestination(name);
      notGotoOK = false;
    }
    if (localDestination) {
      chunk.setLocalGoto(reference.substring(1));
    }
    else if (reference != null)
      chunk.setAnchor(reference);
    tmp.add(chunk);
  }
  return tmp;
}

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

currentfont.push(anchor.getFont());
for (Iterator i = anchor.iterator(); i.hasNext(); ) {
  write((Element) i.next(), indent + 1);

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

currentfont.push(anchor.getFont());
for (Iterator i = anchor.iterator(); i.hasNext(); ) {
  write((Element) i.next(), indent + 1);

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

currentfont.push(anchor.getFont());
for (Iterator i = anchor.iterator(); i.hasNext(); ) {
  write((Element) i.next(), indent + 1);

相关文章