Package com.itextpdf.text
Class MarkedSection
java.lang.Object
com.itextpdf.text.MarkedObject
com.itextpdf.text.MarkedSection
- All Implemented Interfaces:
Indentable
,Element
Deprecated.
since 5.5.9. This class is no longer used.
Wrapper that allows to add properties to a Chapter/Section object.
Before iText 1.5 every 'basic building block' implemented the MarkupAttributes interface.
By setting attributes, you could add markup to the corresponding XML and/or HTML tag.
This functionality was hardly used by anyone, so it was removed, and replaced by
the MarkedObject functionality.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected MarkedObject
Deprecated.This is the title of this section.Fields inherited from class com.itextpdf.text.MarkedObject
element, markupAttributes
Fields inherited from interface com.itextpdf.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, 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 Summary
ConstructorsConstructorDescriptionMarkedSection
(Section section) Deprecated.Creates a MarkedObject with a Section or Chapter object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.Adds aParagraph
,List
orTable
to thisSection
.boolean
Deprecated.Adds aParagraph
,List
,Table
or anotherSection
to thisSection
.boolean
addAll
(Collection<? extends Element> collection) Deprecated.Adds a collection ofElement
s to thisSection
.Deprecated.Creates aSection
, adds it to thisSection
and returns it.addSection
(float indentation) Deprecated.Creates aSection
, adds it to thisSection
and returns it.addSection
(float indentation, int numberDepth) Deprecated.Creates aSection
, adds it to thisSection
and returns it.addSection
(int numberDepth) Deprecated.Creates aSection
, add it to thisSection
and returns it.float
Deprecated.Gets the indentation on the left side.float
Deprecated.Gets the indentation on the right side.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 anElementListener
.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 thisSection
.void
setIndentationLeft
(float indentation) Deprecated.Sets the indentation of thisSection
on the left side.void
setIndentationRight
(float indentation) Deprecated.Sets the indentation of thisSection
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.Methods inherited from class com.itextpdf.text.MarkedObject
getChunks, getMarkupAttributes, isContent, isNestable, setMarkupAttribute, type
-
Field Details
-
title
Deprecated.This is the title of this section.
-
-
Constructor Details
-
MarkedSection
Deprecated.Creates a MarkedObject with a Section or Chapter object.- Parameters:
section
- the marked section
-
-
Method Details
-
add
Deprecated.Adds aParagraph
,List
orTable
to thisSection
.- Parameters:
index
- index at which the specified element is to be insertedo
- an object of typeParagraph
,List
orTable
=- Throws:
ClassCastException
- if the object is not aParagraph
,List
orTable
- Since:
- 5.0.1 (signature changed to use Element)
-
add
Deprecated.Adds aParagraph
,List
,Table
or anotherSection
to thisSection
.- Parameters:
o
- an object of typeParagraph
,List
,Table
or anotherSection
- Returns:
- a boolean
- Throws:
ClassCastException
- if the object is not aParagraph
,List
,Table
orSection
- Since:
- 5.0.1 (signature changed to use Element)
-
process
Deprecated.Processes the element by adding it (or the different parts) to anElementListener
.- Specified by:
process
in interfaceElement
- Overrides:
process
in classMarkedObject
- Parameters:
listener
- anElementListener
- Returns:
true
if the element was processed successfully
-
addAll
Deprecated.Adds a collection ofElement
s to thisSection
.- Parameters:
collection
- a collection ofParagraph
s,List
s and/orTable
s- Returns:
true
if the action succeeded,false
if not.- Throws:
ClassCastException
- if one of the objects isn't aParagraph
,List
,Table
-
addSection
Deprecated.Creates aSection
, adds it to thisSection
and returns it.- Parameters:
indentation
- the indentation of the new sectionnumberDepth
- the numberDepth of the section- Returns:
- a new Section object
-
addSection
Deprecated.Creates aSection
, adds it to thisSection
and returns it.- Parameters:
indentation
- the indentation of the new section- Returns:
- a new Section object
-
addSection
Deprecated.Creates aSection
, add it to thisSection
and returns it.- Parameters:
numberDepth
- the numberDepth of the section- Returns:
- a new Section object
-
addSection
Deprecated.Creates aSection
, adds it to thisSection
and returns it.- Returns:
- a new Section object
-
setTitle
Deprecated.Sets the title of this section.- Parameters:
title
- the new title
-
getTitle
Deprecated.Gets the title of this MarkedSection.- Returns:
- a MarkObject with a Paragraph containing the title of a Section
- Since:
- iText 2.0.8
-
setNumberDepth
public void setNumberDepth(int numberDepth) Deprecated.Sets the depth of the sectionnumbers that will be shown preceding the title.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.
- Parameters:
numberDepth
- the new numberDepth
-
setIndentationLeft
public void setIndentationLeft(float indentation) Deprecated.Sets the indentation of thisSection
on the left side.- Specified by:
setIndentationLeft
in interfaceIndentable
- Parameters:
indentation
- the indentation
-
setIndentationRight
public void setIndentationRight(float indentation) Deprecated.Sets the indentation of thisSection
on the right side.- Specified by:
setIndentationRight
in interfaceIndentable
- Parameters:
indentation
- the indentation
-
setIndentation
public void setIndentation(float indentation) Deprecated.Sets the indentation of the content of thisSection
.- Parameters:
indentation
- the indentation
-
setBookmarkOpen
public void setBookmarkOpen(boolean bookmarkOpen) Deprecated.Setter for property bookmarkOpen.- Parameters:
bookmarkOpen
- false if the bookmark children are not visible.
-
setTriggerNewPage
public void setTriggerNewPage(boolean triggerNewPage) Deprecated.Setter for property triggerNewPage.- Parameters:
triggerNewPage
- true if a new page has to be triggered.
-
setBookmarkTitle
Deprecated.Sets the bookmark title. The bookmark title is the same as the section title but can be changed with this method.- Parameters:
bookmarkTitle
- the bookmark title
-
newPage
public void newPage()Deprecated.Adds a new page to the section.- Since:
- 2.1.1
-
getIndentationLeft
public float getIndentationLeft()Deprecated.Description copied from interface:Indentable
Gets the indentation on the left side.- Specified by:
getIndentationLeft
in interfaceIndentable
- Returns:
- the indentation
-
getIndentationRight
public float getIndentationRight()Deprecated.Description copied from interface:Indentable
Gets the indentation on the right side.- Specified by:
getIndentationRight
in interfaceIndentable
- Returns:
- the indentation
-