Indentable
, Element
, LargeElement
, IAccessibleElement
, TextElementArray
, Serializable
, Cloneable
, Iterable<Element>
, Collection<Element>
, List<Element>
, RandomAccess
public class ChapterAutoNumber extends Chapter
Modifier and Type | Field | Description |
---|---|---|
protected boolean |
numberSet |
Is the chapter number already set?
|
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
addedCompletely, bookmarkOpen, bookmarkTitle, complete, indentation, indentationLeft, indentationRight, notAddedYet, numberDepth, numbers, numberStyle, NUMBERSTYLE_DOTTED, NUMBERSTYLE_DOTTED_WITHOUT_FINAL_DOT, subsections, title, triggerNewPage
Constructor | Description |
---|---|
ChapterAutoNumber(Paragraph para) |
Create a new object.
|
ChapterAutoNumber(String title) |
Create a new object.
|
Modifier and Type | Method | 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.
|
containsAll, toString
equals, hashCode
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
isNestable, type
parallelStream, stream
containsAll, equals, hashCode, of, of, of, of, of, of, of, of, of, of, of, of
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
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
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 numberCopyright © 2018. All rights reserved.