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, CHAPTER, CHUNK, CREATIONDATE, CREATOR, HEADER, IMGRAW, IMGTEMPLATE, JBIG2, JPEG, JPEG2000, KEYWORDS, LIST, LISTITEM, MARKED, MULTI_COLUMN_TEXT, PARAGRAPH, PHRASE, PRODUCER, PTABLE, RECTANGLE, SECTION, SUBJECT, TITLE, WRITABLE_DIRECT, 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 |
---|---|
List<Chunk> |
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 Properties markupAttributes
protected MarkedObject()
public MarkedObject(Element element)
element
- the elementpublic 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()
public void setMarkupAttribute(String key, String value)
key
- markup keyvalue
- markup valueWebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses