com.lowagie.text
Class ChapterAutoNumber

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byjava.util.ArrayList
              extended bycom.lowagie.text.Section
                  extended bycom.lowagie.text.Chapter
                      extended bycom.lowagie.text.ChapterAutoNumber
All Implemented Interfaces:
Cloneable, Collection, Element, LargeElement, List, RandomAccess, Serializable, TextElementArray

public class ChapterAutoNumber
extends Chapter

Chapter with auto numbering.

Author:
Michael Niedermair
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.lowagie.text.Section
NUMBERSTYLE_DOTTED, NUMBERSTYLE_DOTTED_WITHOUT_FINAL_DOT
 
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, CCITT_BLACKIS1, CCITT_ENCODEDBYTEALIGN, CCITT_ENDOFBLOCK, CCITT_ENDOFLINE, CCITTG3_1D, CCITTG3_2D, CCITTG4, CELL, CHAPTER, CHUNK, CREATIONDATE, CREATOR, HEADER, IMGRAW, IMGTEMPLATE, JPEG, JPEG2000, KEYWORDS, LIST, LISTITEM, MARKED, MULTI_COLUMN_TEXT, PARAGRAPH, PHRASE, PRODUCER, PTABLE, RECTANGLE, ROW, SECTION, SUBJECT, TABLE, TITLE, YMARK
 
Constructor Summary
ChapterAutoNumber(Paragraph para)
          Create a new object.
ChapterAutoNumber(String title)
          Create a new object.
 
Method Summary
 Section addSection(Paragraph title)
          Create a new section for this chapter and add it.
 Section addSection(String title)
          Create a new section for this chapter and ad it.
 int setAutomaticNumber(int number)
          Changes the Chapter number.
 
Methods inherited from class com.lowagie.text.Chapter
isNestable, type
 
Methods inherited from class com.lowagie.text.Section
add, add, addAll, addMarkedSection, addSection, addSection, addSection, addSection, addSection, addSection, constructTitle, flushContent, getBookmarkTitle, getChunks, getDepth, getIndentation, getIndentationLeft, getIndentationRight, getNumberDepth, getNumberStyle, getTitle, isBookmarkOpen, isChapter, isComplete, isContent, isNotAddedYet, isSection, isTriggerNewPage, newPage, process, setBookmarkOpen, setBookmarkTitle, setChapterNumber, setComplete, setIndentation, setIndentationLeft, setIndentationRight, setNotAddedYet, setNumberDepth, setNumberStyle, setTitle, setTriggerNewPage
 
Methods inherited from class java.util.ArrayList
addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, remove, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.lowagie.text.Element
toString
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, remove, removeAll, retainAll, subList
 

Constructor Detail

ChapterAutoNumber

public ChapterAutoNumber(Paragraph para)
Create a new object.

Parameters:
para - the Chapter title (as a Paragraph)

ChapterAutoNumber

public ChapterAutoNumber(String title)
Create a new object.

Parameters:
title - the Chapter title (as a String)
Method Detail

addSection

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

Overrides:
addSection in class 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 class Section
Parameters:
title - the Section title (as a Paragraph)
Returns:
Returns the new section.

setAutomaticNumber

public int setAutomaticNumber(int number)
Changes the Chapter number.

Parameters:
number - the new chapter number
Since:
2.1.4


Copyright © 2011 EGIZ - E-Government Innovation Center. All Rights Reserved.