com.lowagie.text

Class ChapterAutoNumber

Implemented Interfaces:
Element, TextElementArray

public class ChapterAutoNumber
extends Chapter

Chapter with auto numbering.
Author:
Michael Niedermair

Field Summary

private static int
chapternumber
the chapter number (for all instance)

Fields inherited from class com.lowagie.text.Section

bookmarkOpen, bookmarkTitle, indentationLeft, indentationRight, numberDepth, numbers, sectionIndent, subsections, title

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, GRAPHIC, HEADER, IMGRAW, IMGTEMPLATE, JPEG, KEYWORDS, LIST, LISTITEM, MULTI_COLUMN_TEXT, PARAGRAPH, PHRASE, PRODUCER, PTABLE, RECTANGLE, ROW, SECTION, SUBJECT, TABLE, TITLE

Constructor Summary

ChapterAutoNumber(String title)
Create a new objet.
ChapterAutoNumber(Paragraph para)
Create a new object.

Method Summary

Section
addSection(String title)
Create a new section for this chapter and ad it.
Section
addSection(Paragraph title)
Create a new section for this chapter and add it.

Methods inherited from class com.lowagie.text.Chapter

isTag, type

Methods inherited from class com.lowagie.text.Section

add, add, addAll, addSection, addSection, addSection, addSection, addSection, addSection, addSection, addSection, addSection, depth, getBookmarkTitle, getChunks, indentation, indentationLeft, indentationRight, isBookmarkOpen, isChapter, isSection, isTag, isTitle, numberDepth, process, set, setBookmarkOpen, setBookmarkTitle, setIndentation, setIndentationLeft, setIndentationRight, setNumberDepth, setNumbers, setTitle, title, type

Field Details

chapternumber

private static int chapternumber
the chapter number (for all instance)

Constructor Details

ChapterAutoNumber

public ChapterAutoNumber(String title)
Create a new objet.
Parameters:
title - the Chapter title (as a String)

ChapterAutoNumber

public ChapterAutoNumber(Paragraph para)
Create a new object.
Parameters:
para - the Chapter title (as a Paragraph)

Method Details

addSection

public Section addSection(String title)
Create a new section for this chapter and ad it.
Overrides:
addSection in interface Section
Parameters:
title - the Section title (as a String)
Returns:
Returns the new section.

addSection

public Section addSection(Paragraph title)
Create a new section for this chapter and add it.
Overrides:
addSection in interface Section
Parameters:
title - the Section title (as a Paragraph)
Returns:
Returns the new section.