List of usage examples for com.lowagie.text RomanList RomanList
public RomanList(boolean lowercase, int symbolIndent)
From source file:org.areasy.common.doclet.document.tags.TagOL.java
License:Open Source License
public Element[] openTagElements() { char typeChar = getTypeChar(); int first = getFirstListIndex(); switch (typeChar) { case 'a': case 'A': list = new List(false, true, 20); if (first > 0 && first <= 26) list.setFirst((char) (typeChar + (first - 1))); break;// w ww. ja v a 2s . c om case 'i': case 'I': list = new RomanList(typeChar == 'i', 20); if (first > 0) list.setFirst(first); break; case '1': default: list = new List(true, 20); if (first > 0) list.setFirst(first); } list.setListSymbol(new Chunk("", getFont())); Element[] elements = new Element[1]; elements[0] = new Paragraph((float) 8.0, " ", getFont()); return elements; }