Class RomanNumbering
java.lang.Object
com.itextpdf.kernel.numbering.RomanNumbering
This class can produce String combinations representing a roman number.
The first roman numbers are: I, II, III, IV, V, VI, VII, VIII, IX, X
See http://en.wikipedia.org/wiki/Roman_numerals
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classHelper class for Roman Digits -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final RomanNumbering.RomanDigit[]Array with Roman digits. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static Stringconvert(int index) Returns a roman representation of an integer.static StringtoRoman(int number, boolean upperCase) Returns a roman representation of an integer.static StringtoRomanLowerCase(int number) Returns a lower case roman representation of an integer.static StringtoRomanUpperCase(int number) Returns an upper case roman representation of an integer.
-
Field Details
-
ROMAN_DIGITS
Array with Roman digits.
-
-
Constructor Details
-
RomanNumbering
public RomanNumbering()
-
-
Method Details
-
toRomanLowerCase
Returns a lower case roman representation of an integer.- Parameters:
number- a number to be converted to roman notation- Returns:
- a lower case roman representation of an integer
-
toRomanUpperCase
Returns an upper case roman representation of an integer.- Parameters:
number- a number to be converted to roman notation- Returns:
- an upper case roman representation of an integer
-
toRoman
Returns a roman representation of an integer.- Parameters:
number- a number to be converted to roman notationupperCase-truefor upper case representation,falsefor lower case one- Returns:
- a roman representation of an integer
-
convert
Returns a roman representation of an integer.- Parameters:
index- the original number- Returns:
- the roman number representation (lower case)
-