public class RomanList extends List
LIST
which use roman-letters.List
Modifier and Type | Class and Description |
---|---|
private static class |
RomanList.RomanDigit
Helper class for Roman Digits
|
Modifier and Type | Field and Description |
---|---|
private static RomanList.RomanDigit[] |
roman
Array with Roman digits.
|
protected boolean |
romanlower
UpperCase or LowerCase
|
ALPHABETICAL, first, firstCh, indentationLeft, indentationRight, lastCh, lettered, list, markupAttributes, numbered, NUMBERICAL, ORDERED, symbol, symbolIndent, UNORDERED
ALIGN_BASELINE, ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_JUSTIFIED, ALIGN_JUSTIFIED_ALL, ALIGN_LEFT, ALIGN_MIDDLE, ALIGN_RIGHT, ALIGN_TOP, ALIGN_UNDEFINED, ANCHOR, ANNOTATION, AUTHOR, CCITT_BLACKIS1, CCITT_ENCODEDBYTEALIGN, CCITT_ENDOFBLOCK, CCITT_ENDOFLINE, CCITTG3_1D, CCITTG3_2D, CCITTG4, CELL, CHAPTER, CHUNK, CREATIONDATE, CREATOR, GRAPHIC, HEADER, IMGRAW, IMGTEMPLATE, JPEG, KEYWORDS, LIST, LISTITEM, MULTI_COLUMN_TEXT, PARAGRAPH, PHRASE, PRODUCER, PTABLE, RECTANGLE, ROW, SECTION, SUBJECT, TABLE, TITLE
Constructor and Description |
---|
RomanList(boolean romanlower,
int symbolIndent)
Initialization
|
RomanList(int symbolIndent)
Initialization
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(java.lang.Object o)
Adds an
Object to the List . |
boolean |
isRomanLower()
Checks if the list is roman-letter with lowercase
|
void |
setRomanLower(boolean romanlower)
set the roman-letters to lowercase otherwise to uppercase
|
static java.lang.String |
toRoman(int number)
changes an int into a lower case roman number.
|
static java.lang.String |
toRomanLowerCase(int number)
Changes an int into a lower case roman number.
|
static java.lang.String |
toRomanUppercase(int number)
Changes an int into an upper case roman number.
|
first, getChunks, getItems, getMarkupAttribute, getMarkupAttributeNames, getMarkupAttributes, indentationLeft, indentationRight, isNumbered, isSymbol, isTag, leading, process, setFirst, setFirst, setIndentationLeft, setIndentationRight, setListSymbol, setListSymbol, setMarkupAttribute, setMarkupAttributes, size, symbol, symbolIndent, type
protected boolean romanlower
private static final RomanList.RomanDigit[] roman
public RomanList(int symbolIndent)
symbolIndent
- indentpublic RomanList(boolean romanlower, int symbolIndent)
romanlower
- roman-char in lowercasesymbolIndent
- indentpublic void setRomanLower(boolean romanlower)
romanlower
- public boolean isRomanLower()
true
if the roman-letter is lowercase, false
otherwise.public boolean add(java.lang.Object o)
Object
to the List
.add
in interface TextElementArray
add
in class List
o
- the object to add.public static java.lang.String toRoman(int number)
number
- the original numberpublic static java.lang.String toRomanUppercase(int number)
number
- the original numberpublic static java.lang.String toRomanLowerCase(int number)
number
- the original number