com.lowagie.text
Class RomanList

java.lang.Object
  |
  +--com.lowagie.text.List
        |
        +--com.lowagie.text.RomanList
All Implemented Interfaces:
Element, MarkupAttributes, TextElementArray

public class RomanList
extends List

A special-version of LIST whitch use roman-letters.

Version:
2003-06-22
Author:
Michael Niedermair
See Also:
com.lowagie.List

Nested Class Summary
private static class RomanList.RomanDigit
          Hilfsklasse f�r r�mische Zeichen
 
Field Summary
private static RomanList.RomanDigit[] roman
          Array mit r�mischen Zeichen und deren Wert
protected  boolean romanlower
          UpperCase or LowerCase
 
Fields inherited from class com.lowagie.text.List
first, firstCh, indentationLeft, indentationRight, lastCh, lettered, list, markupAttributes, numbered, symbol, symbolIndent
 
Fields inherited from interface com.lowagie.text.Element
ALIGN_BASELINE, ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_JUSTIFIED, 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, PARAGRAPH, PHRASE, PRODUCER, PTABLE, RECTANGLE, ROW, SECTION, SUBJECT, TABLE, TITLE
 
Constructor Summary
RomanList(boolean romanlower, int symbolIndent)
          Initialisierung
RomanList(int symbolIndent)
          Initialisierung
 
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)
          Wandelt eine Integerzahl in r�mische Kleinbuchstaben um.
static String toRomanLowerCase(int number)
          Wandelt eine Integerzahl in r�mische Kleinbuchstaben um.
static String toRomanUppercase(int number)
          Wandelt eine Integerzahl in r�mische Gro�buchstaben um.
 
Methods inherited from class com.lowagie.text.List
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.lowagie.text.Element
toString
 

Field Detail

romanlower

protected boolean romanlower
UpperCase or LowerCase


roman

private static final RomanList.RomanDigit[] roman
Array mit r�mischen Zeichen und deren Wert

Constructor Detail

RomanList

public RomanList(int symbolIndent)
Initialisierung

Parameters:
symbolIndent - indent

RomanList

public RomanList(boolean romanlower,
                 int symbolIndent)
Initialisierung

Parameters:
romanlower - roman-char in lowercase
symbolIndent - indent
Method Detail

setRomanLower

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

Parameters:
romanlower -

isRomanLower

public boolean isRomanLower()
Checks if the list is roman-letter with lowercase

Returns:
true if the roman-letter is lowercase, false otherwise.

add

public boolean add(Object o)
Adds an Object to the List.

Specified by:
add in interface TextElementArray
Overrides:
add in class List
Parameters:
o - the object to add.

toRoman

public static String toRoman(int number)
Wandelt eine Integerzahl in r�mische Kleinbuchstaben um.


toRomanUppercase

public static String toRomanUppercase(int number)
Wandelt eine Integerzahl in r�mische Gro�buchstaben um.


toRomanLowerCase

public static String toRomanLowerCase(int number)
Wandelt eine Integerzahl in r�mische Kleinbuchstaben um.