Package com.aowagie.text
Class ChapterAutoNumber
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList
-
- com.aowagie.text.Section
-
- com.aowagie.text.Chapter
-
- com.aowagie.text.ChapterAutoNumber
-
- All Implemented Interfaces:
Element
,LargeElement
,TextElementArray
,java.io.Serializable
,java.lang.Cloneable
,java.lang.Iterable
,java.util.Collection
,java.util.List
,java.util.RandomAccess
public class ChapterAutoNumber extends Chapter
Chapter with auto numbering.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
numberSet
Is the chapter number already set?private static long
serialVersionUID
-
Fields inherited from class com.aowagie.text.Section
addedCompletely, bookmarkOpen, bookmarkTitle, complete, indentation, indentationLeft, indentationRight, notAddedYet, numberDepth, numbers, numberStyle, NUMBERSTYLE_DOTTED, NUMBERSTYLE_DOTTED_WITHOUT_FINAL_DOT, subsections, title, triggerNewPage
-
Fields inherited from interface com.aowagie.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, JBIG2, JPEG, JPEG2000, KEYWORDS, LIST, LISTITEM, MARKED, MULTI_COLUMN_TEXT, PARAGRAPH, PHRASE, PRODUCER, PTABLE, RECTANGLE, ROW, SECTION, SUBJECT, TABLE, TITLE, YMARK
-
-
Constructor Summary
Constructors Constructor Description ChapterAutoNumber(java.lang.String title)
Create a new object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Section
addSection(Paragraph title)
Create a new section for this chapter and add it.Section
addSection(java.lang.String title)
Create a new section for this chapter and ad it.(package private) int
setAutomaticNumber(int number)
Changes the Chapter number.-
Methods inherited from class com.aowagie.text.Chapter
isNestable, type
-
Methods inherited from class com.aowagie.text.Section
add, add, addAll, addMarkedSection, addSection, addSection, addSection, addSection, addSection, addSection, constructTitle, flushContent, getBookmarkTitle, getChunks, getDepth, getIndentation, getIndentationLeft, getIndentationRight, getNumberDepth, getNumberStyle, getTitle, isAddedCompletely, isBookmarkOpen, isChapter, isComplete, isContent, isNotAddedYet, isSection, isTriggerNewPage, newPage, process, setAddedCompletely, setBookmarkOpen, setBookmarkTitle, setChapterNumber, setComplete, setIndentation, setIndentationLeft, setIndentationRight, setNotAddedYet, setNumberDepth, setNumberStyle, setTitle, setTriggerNewPage
-
Methods inherited from class java.util.ArrayList
addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
numberSet
private boolean numberSet
Is the chapter number already set?- Since:
- 2.1.4
-
-
Method Detail
-
addSection
public Section addSection(java.lang.String title)
Create a new section for this chapter and ad it.- Overrides:
addSection
in classSection
- Parameters:
title
- the Section title (as aString
)- Returns:
- Returns the new section.
-
addSection
public Section addSection(Paragraph title)
Create a new section for this chapter and add it.- Overrides:
addSection
in classSection
- Parameters:
title
- the Section title (as aParagraph
)- Returns:
- Returns the new section.
-
setAutomaticNumber
int setAutomaticNumber(int number)
Changes the Chapter number.- Parameters:
number
- the new chapter number- Returns:
- Number
- Since:
- 2.1.4
-
-