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

x33g5p2x  于2022-01-24 转载在 其他  
字(9.1k)|赞(0)|评价(0)|浏览(112)

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

List.getIndentationLeft介绍

[英]Gets the indentation of this paragraph on the left side.
[中]获取此段落左侧的缩进。

代码示例

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

} else if (o instanceof List) {
  List nested = (List) o;
  nested.setIndentationLeft(nested.getIndentationLeft() + symbolIndent);
  first--;
  return list.add(nested);

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

} else if (o instanceof List) {
  List nested = (List) o;
  nested.setIndentationLeft(nested.getIndentationLeft() + symbolIndent);
  first--;
  return list.add(nested);

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

} else if (o instanceof List) {
  List nested = (List) o;
  nested.setIndentationLeft(nested.getIndentationLeft() + symbolIndent);
  first--;
  return list.add(nested);

代码示例来源: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: 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(GreekAlphabetFactory.getString(first + list.size(), lowercase));
    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: 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;
    chunk = new Chunk(preSymbol, symbol.getFont());
    chunk.append(RomanNumberFactory.getString(first + list.size(), lowercase));
    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;
  }
}

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

if (o instanceof List) {
  List list = (List) o;
  list.setIndentationLeft(list.getIndentationLeft() + indentationLeft);
  list.setIndentationRight(indentationRight);
  return super.add(list);

代码示例来源: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;
    chunk = new Chunk(preSymbol, symbol.getFont());
    chunk.append(RomanNumberFactory.getString(first + list.size(), lowercase));
    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: 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: fr.opensagres.xdocreport.itext-gae/itext-gae

case Element.LIST:
  List sublist = (List)ele;
  addList(sublist, left + sublist.getIndentationLeft(), right, alignment);
  break;

代码示例来源: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(GreekAlphabetFactory.getString(first + list.size(), lowercase));
    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

if (o instanceof List) {
  List list = (List) o;
  list.setIndentationLeft(list.getIndentationLeft() + indentationLeft);
  list.setIndentationRight(indentationRight);
  return super.add(list);

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

case Element.LIST:
  List sublist = (List)ele;
  addList(sublist, left + sublist.getIndentationLeft(), right, alignment);
  break;

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

case Element.LIST:
  List sublist = (List)ele;
  addList(sublist, left + sublist.getIndentationLeft(), right, alignment);
  break;

代码示例来源: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(GreekAlphabetFactory.getString(first + list.size(), lowercase));
    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;
    chunk = new Chunk(preSymbol, symbol.getFont());
    chunk.append(RomanNumberFactory.getString(first + list.size(), lowercase));
    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

nested.setIndentationLeft(nested.getIndentationLeft() + symbolIndent);
first--;
return list.add(nested);

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

if (o instanceof List) {
  List list = (List) o;
  list.setIndentationLeft(list.getIndentationLeft() + indentationLeft);
  list.setIndentationRight(indentationRight);
  return super.add(list);

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

nested.setIndentationLeft(nested.getIndentationLeft() + symbolIndent);
first--;
return list.add(nested);

相关文章