public class ChapterAutoNumber extends Chapter
Modifier and Type | Field and Description |
---|---|
protected boolean |
numberSet
Is the chapter number already set?
|
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, BODY, CCITT_BLACKIS1, CCITT_ENCODEDBYTEALIGN, CCITT_ENDOFBLOCK, CCITT_ENDOFLINE, CCITTG3_1D, CCITTG3_2D, CCITTG4, CHAPTER, CHUNK, CREATIONDATE, CREATOR, DIV, HEADER, IMGRAW, IMGTEMPLATE, JBIG2, JPEG, JPEG2000, KEYWORDS, LANGUAGE, LIST, LISTITEM, MARKED, 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, getAccessibleAttribute, getAccessibleAttributes, getBookmarkTitle, getChunks, getDepth, getId, getIndentation, getIndentationLeft, getIndentationRight, getNumberDepth, getNumberStyle, getRole, getTitle, isAddedCompletely, isBookmarkOpen, isChapter, isComplete, isContent, isInline, isNotAddedYet, isSection, isTriggerNewPage, newPage, process, setAccessibleAttribute, setAddedCompletely, setBookmarkOpen, setBookmarkTitle, setChapterNumber, setComplete, setId, setIndentation, setIndentationLeft, setIndentationRight, setNotAddedYet, setNumberDepth, setNumberStyle, setRole, 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, toString, wait, wait, wait
containsAll, equals, hashCode
parallelStream, stream
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 number
Copyright © 1998–2022. All rights reserved.