@Deprecated public class MarkedSection extends MarkedObject implements Indentable
Modifier and Type | Field and Description |
---|---|
protected MarkedObject |
title
Deprecated.
This is the title of this section.
|
element, markupAttributes
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 |
---|
MarkedSection(Section section)
Deprecated.
Creates a MarkedObject with a Section or Chapter object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(Element o)
Deprecated.
Adds a Paragraph , List , Table or another Section to this Section .
|
void |
add(int index, Element o)
Deprecated.
Adds a Paragraph , List or Table to this Section .
|
boolean |
addAll(Collection extends Element> collection)
Deprecated.
Adds a collection of Element s to this Section .
|
MarkedSection |
addSection()
Deprecated.
Creates a Section , adds it to this Section and returns it.
|
MarkedSection |
addSection(float indentation)
Deprecated.
Creates a Section , adds it to this Section and returns it.
|
MarkedSection |
addSection(float indentation, int numberDepth)
Deprecated.
Creates a Section , adds it to this Section and returns it.
|
MarkedSection |
addSection(int numberDepth)
Deprecated.
Creates a Section , add it to this Section and returns it.
|
float |
getIndentationLeft()
Deprecated.
Gets the indentation on the left side.
|
float |
getIndentationRight()
Deprecated.
Gets the indentation on the right side.
|
MarkedObject |
getTitle()
Deprecated.
Gets the title of this MarkedSection.
|
void |
newPage()
Deprecated.
Adds a new page to the section.
|
boolean |
process(ElementListener listener)
Deprecated.
Processes the element by adding it (or the different parts) to an ElementListener .
|
void |
setBookmarkOpen(boolean bookmarkOpen)
Deprecated.
Setter for property bookmarkOpen.
|
void |
setBookmarkTitle(String bookmarkTitle)
Deprecated.
Sets the bookmark title.
|
void |
setIndentation(float indentation)
Deprecated.
Sets the indentation of the content of this Section .
|
void |
setIndentationLeft(float indentation)
Deprecated.
Sets the indentation of this Section on the left side.
|
void |
setIndentationRight(float indentation)
Deprecated.
Sets the indentation of this Section on the right side.
|
void |
setNumberDepth(int numberDepth)
Deprecated.
Sets the depth of the sectionnumbers that will be shown preceding the title.
|
void |
setTitle(MarkedObject title)
Deprecated.
Sets the title of this section.
|
void |
setTriggerNewPage(boolean triggerNewPage)
Deprecated.
Setter for property triggerNewPage.
|
getChunks, getMarkupAttributes, isContent, isNestable, setMarkupAttribute, type
protected MarkedObject title
public MarkedSection(Section section)
section
- the marked section
public void add(int index, Element o)
Paragraph
, List
or Table
to this Section
.
index
- index at which the specified element is to be inserted
o
- an object of type Paragraph
, List
or Table
=
ClassCastException
- if the object is not a Paragraph
, List
or Table
public boolean add(Element o)
Paragraph
, List
, Table
or another Section
to this Section
.
o
- an object of type Paragraph
, List
, Table
or another Section
ClassCastException
- if the object is not a Paragraph
, List
, Table
or Section
public boolean process(ElementListener listener)
ElementListener
.
process
in interface Element
process
in class MarkedObject
listener
- an ElementListener
true
if the element was processed successfully
public boolean addAll(Collection extends Element> collection)
Element
s to this Section
.
collection
- a collection of Paragraph
s, List
s and/or Table
s
true
if the action succeeded, false
if not.
ClassCastException
- if one of the objects isn't a Paragraph
, List
, Table
public MarkedSection addSection(float indentation, int numberDepth)
Section
, adds it to this Section
and returns it.
indentation
- the indentation of the new section
numberDepth
- the numberDepth of the section
public MarkedSection addSection(float indentation)
Section
, adds it to this Section
and returns it.
indentation
- the indentation of the new section
public MarkedSection addSection(int numberDepth)
Section
, add it to this Section
and returns it.
numberDepth
- the numberDepth of the section
public MarkedSection addSection()
Section
, adds it to this Section
and returns it.
public void setTitle(MarkedObject title)
title
- the new title
public MarkedObject getTitle()
public void setNumberDepth(int numberDepth)
If the numberdepth is 0, the sections will not be numbered. If the numberdepth is 1, the section will be numbered with their own number. If the numberdepth is higher (for instance x > 1), the numbers of x - 1 parents will be shown.
numberDepth
- the new numberDepth
public void setIndentationLeft(float indentation)
Section
on the left side.
setIndentationLeft
in interface Indentable
indentation
- the indentation
public void setIndentationRight(float indentation)
Section
on the right side.
setIndentationRight
in interface Indentable
indentation
- the indentation
public void setIndentation(float indentation)
Section
.
indentation
- the indentation
public void setBookmarkOpen(boolean bookmarkOpen)
bookmarkOpen
- false if the bookmark children are not visible.
public void setTriggerNewPage(boolean triggerNewPage)
triggerNewPage
- true if a new page has to be triggered.
public void setBookmarkTitle(String bookmarkTitle)
bookmarkTitle
- the bookmark title
public void newPage()
public float getIndentationLeft()
Indentable
getIndentationLeft
in interface Indentable
public float getIndentationRight()
Indentable
getIndentationRight
in interface Indentable
Copyright © 1998–2019. All rights reserved.