com.lowagie.text

Class RomanList

Implemented Interfaces:
Element, TextElementArray

public class RomanList
extends List

A special-version of LIST which use roman-letters.
Version:
2003-06-22
Author:
Michael Niedermair
See Also:
List

Nested Class Summary

private static class
RomanList.RomanDigit
Helper class for Roman Digits

Field Summary

private static RomanList.RomanDigit[]
roman
Array with Roman digits.

Fields inherited from class com.lowagie.text.List

ALPHABETICAL, LOWERCASE, NUMBERICAL, ORDERED, UNORDERED, UPPERCASE, alignindent, autoindent, first, indentationLeft, indentationRight, lettered, list, lowercase, markupAttributes, numbered, symbol, symbolIndent

Fields inherited from interface com.lowagie.text.Element

ALIGN_BASELINE, ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_JUSTIFIED, ALIGN_JUSTIFIED_ALL, ALIGN_LEFT, ALIGN_MIDDLE, ALIGN_RIGHT, ALIGN_TOP, ALIGN_UNDEFINED, ANCHOR, ANNOTATION, AUTHOR, CCITTG3_1D, CCITTG3_2D, CCITTG4, CCITT_BLACKIS1, CCITT_ENCODEDBYTEALIGN, CCITT_ENDOFBLOCK, CCITT_ENDOFLINE, CELL, CHAPTER, CHUNK, CREATIONDATE, CREATOR, HEADER, IMGRAW, IMGTEMPLATE, JPEG, KEYWORDS, LIST, LISTITEM, MARKED, MULTI_COLUMN_TEXT, PARAGRAPH, PHRASE, PRODUCER, PTABLE, RECTANGLE, ROW, SECTION, SUBJECT, TABLE, TITLE

Constructor Summary

RomanList()
Initialization
RomanList(boolean romanlower, int symbolIndent)
Initialization
RomanList(int symbolIndent)
Initialization

Method Summary

boolean
add(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 String
toRoman(int number)
changes an int into a lower case roman number.
static String
toRomanLowerCase(int number)
Changes an int into a lower case roman number.
static String
toRomanUpperCase(int number)
Changes an int into an upper case roman number.

Methods inherited from class com.lowagie.text.List

add, first, getChunks, getItems, getLowerCaseLetter, getUpperCaseLetter, indentationLeft, indentationRight, isAlignindent, isLettered, isLowerCase, isNumbered, isSymbol, isTag, leading, normalizeIndentation, process, setAlignindent, setAutoindent, setFirst, setIndentationLeft, setIndentationRight, setListSymbol, setListSymbol, setLowerCase, size, symbol, symbolIndent, type

Field Details

roman

private static final RomanList.RomanDigit[] roman
Array with Roman digits.

Constructor Details

RomanList

public RomanList()
Initialization

RomanList

public RomanList(boolean romanlower,
                 int symbolIndent)
Initialization
Parameters:
romanlower - roman-char in lowercase
symbolIndent - indent

RomanList

public RomanList(int symbolIndent)
Initialization
Parameters:
symbolIndent - indent

Method Details

add

public boolean add(Object o)
Adds an Object to the List.
Specified by:
add in interface TextElementArray
Overrides:
add in interface List
Parameters:
o - the object to add.
Returns:
true if adding the object succeeded

isRomanLower

public boolean isRomanLower()
Checks if the list is roman-letter with lowercase
Returns:
true if the roman-letter is lowercase, false otherwise.

setRomanLower

public void setRomanLower(boolean romanlower)
set the roman-letters to lowercase otherwise to uppercase
Parameters:
romanlower -

toRoman

public static String toRoman(int number)
changes an int into a lower case roman number.
Parameters:
number - the original number
Returns:
the roman number (lower case)

toRomanLowerCase

public static String toRomanLowerCase(int number)
Changes an int into a lower case roman number.
Parameters:
number - the original number
Returns:
the roman number (lower case)

toRomanUpperCase

public static String toRomanUpperCase(int number)
Changes an int into an upper case roman number.
Parameters:
number - the original number
Returns:
the roman number (upper case)