public class ChapterAutoNumber extends Chapter
Modifier and Type | Field and Description |
---|---|
protected boolean |
numberSet
Is the chapter number already set?
|
private static long |
serialVersionUID |
addedCompletely, bookmarkOpen, bookmarkTitle, complete, indentation, indentationLeft, indentationRight, notAddedYet, numberDepth, numbers, numberStyle, NUMBERSTYLE_DOTTED, NUMBERSTYLE_DOTTED_WITHOUT_FINAL_DOT, subsections, title, triggerNewPage
modCount
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, CHAPTER, CHUNK, CREATIONDATE, CREATOR, HEADER, IMGRAW, IMGTEMPLATE, JBIG2, JPEG, JPEG2000, KEYWORDS, LIST, LISTITEM, MARKED, MULTI_COLUMN_TEXT, PARAGRAPH, PHRASE, PRODUCER, PTABLE, RECTANGLE, SECTION, SUBJECT, TITLE, WRITABLE_DIRECT, YMARK
Constructor and Description |
---|
ChapterAutoNumber(Paragraph para)
Create a new object.
|
ChapterAutoNumber(String title)
Create a new object.
|
Modifier and Type | Method and Description |
---|---|
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.
|
isNestable, type
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
addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
equals, hashCode
containsAll, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
containsAll, equals, hashCode
parallelStream, stream
private static final long serialVersionUID
protected boolean numberSet
public ChapterAutoNumber(Paragraph para)
para
- the Chapter title (as a Paragraph
)public ChapterAutoNumber(String title)
title
- the Chapter title (as a String
)public Section addSection(String title)
addSection
in class Section
title
- the Section title (as a String
)public Section addSection(Paragraph title)
addSection
in class Section
title
- the Section title (as a Paragraph
)public int setAutomaticNumber(int number)
number
- the new chapter numberWebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses