public class MarkedObject extends Object implements Element
Modifier and Type | Field and Description |
---|---|
protected Element |
element
The element that is wrapped in a MarkedObject.
|
protected Properties |
markupAttributes
Contains extra 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, CCITT_BLACKIS1, CCITT_ENCODEDBYTEALIGN, CCITT_ENDOFBLOCK, CCITT_ENDOFLINE, CCITTG3_1D, CCITTG3_2D, CCITTG4, CELL, CHAPTER, CHUNK, CREATIONDATE, CREATOR, FOOTNOTE, HEADER, IMGRAW, IMGTEMPLATE, JBIG2, JPEG, JPEG2000, KEYWORDS, LIST, LISTITEM, MARKED, MULTI_COLUMN_TEXT, PARAGRAPH, PHRASE, PRODUCER, PTABLE, RECTANGLE, ROW, SECTION, SUBJECT, TABLE, TITLE, YMARK
Modifier | Constructor and Description |
---|---|
protected |
MarkedObject()
This constructor is for internal use only.
|
|
MarkedObject(Element element)
Creates a MarkedObject.
|
Modifier and Type | Method and Description |
---|---|
ArrayList<Element> |
getChunks()
Gets all the chunks in this element.
|
Properties |
getMarkupAttributes()
Getter for the markup attributes.
|
boolean |
isContent()
Checks if this element is a content object.
|
boolean |
isNestable()
Checks if this element is nestable.
|
boolean |
process(ElementListener listener)
Processes the element by adding it (or the different parts) to an
ElementListener . |
void |
setMarkupAttribute(String key,
String value)
Adds one markup attribute.
|
int |
type()
Gets the type of the text element.
|
protected Element element
protected Properties markupAttributes
public boolean process(ElementListener listener)
ElementListener
.public int type()
public boolean isContent()
Element
isContent
in interface Element
Element.isContent()
public boolean isNestable()
Element
isNestable
in interface Element
Element.isNestable()
public Properties getMarkupAttributes()
Copyright © 2020. All rights reserved.