public class PdfArtifact extends Object implements IAccessibleElement
Modifier and Type | Class and Description |
---|---|
static class |
PdfArtifact.ArtifactType |
Modifier and Type | Field and Description |
---|---|
protected HashMap<PdfName,PdfObject> |
accessibleAttributes |
protected AccessibleElementId |
id |
protected PdfName |
role |
Constructor and Description |
---|
PdfArtifact() |
Modifier and Type | Method and Description |
---|---|
PdfObject |
getAccessibleAttribute(PdfName key)
Get the attribute of accessible element (everything in A dictionary + Lang , Alt , ActualText , E ).
|
HashMap<PdfName,PdfObject> |
getAccessibleAttributes()
Gets all the properties of accessible element.
|
PdfArray |
getAttached() |
PdfArray |
getBBox() |
AccessibleElementId |
getId() |
PdfName |
getRole()
Gets the role of the accessible element.
|
PdfString |
getType() |
boolean |
isInline() |
void |
setAccessibleAttribute(PdfName key, PdfObject value)
Set the attribute of accessible element (everything in A dictionary + Lang , Alt , ActualText , E ).
|
void |
setAttached(PdfArray attached) |
void |
setBBox(PdfArray bbox) |
void |
setId(AccessibleElementId id) |
void |
setRole(PdfName role)
Sets the role of the accessiblee element.
|
void |
setType(PdfArtifact.ArtifactType type) |
void |
setType(PdfString type) |
protected PdfName role
protected AccessibleElementId id
public PdfObject getAccessibleAttribute(PdfName key)
IAccessibleElement
A
dictionary + Lang
, Alt
, ActualText
, E
).
getAccessibleAttribute
in interface IAccessibleElement
public void setAccessibleAttribute(PdfName key, PdfObject value)
IAccessibleElement
A
dictionary + Lang
, Alt
, ActualText
, E
).
setAccessibleAttribute
in interface IAccessibleElement
public HashMap<PdfName,PdfObject> getAccessibleAttributes()
IAccessibleElement
getAccessibleAttributes
in interface IAccessibleElement
public PdfName getRole()
IAccessibleElement
getRole
in interface IAccessibleElement
public void setRole(PdfName role)
IAccessibleElement
null
if you don't want to tag this element. Note that all child elements won't also be tagged.
setRole
in interface IAccessibleElement
public AccessibleElementId getId()
getId
in interface IAccessibleElement
public void setId(AccessibleElementId id)
setId
in interface IAccessibleElement
public boolean isInline()
isInline
in interface IAccessibleElement
public PdfString getType()
public void setType(PdfString type)
public void setType(PdfArtifact.ArtifactType type)
public PdfArray getBBox()
public void setBBox(PdfArray bbox)
public PdfArray getAttached()
public void setAttached(PdfArray attached)
Copyright © 2016. All rights reserved.