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)
IAccessibleElementA dictionary + Lang, Alt, ActualText, E).getAccessibleAttribute in interface IAccessibleElementpublic void setAccessibleAttribute(PdfName key, PdfObject value)
IAccessibleElementA dictionary + Lang, Alt, ActualText, E).setAccessibleAttribute in interface IAccessibleElementpublic HashMap<PdfName,PdfObject> getAccessibleAttributes()
IAccessibleElementgetAccessibleAttributes in interface IAccessibleElementpublic PdfName getRole()
IAccessibleElementgetRole in interface IAccessibleElementpublic void setRole(PdfName role)
IAccessibleElementnull if you don't want to tag this element.
Note that all child elements won't also be tagged.setRole in interface IAccessibleElementpublic AccessibleElementId getId()
getId in interface IAccessibleElementpublic void setId(AccessibleElementId id)
setId in interface IAccessibleElementpublic boolean isInline()
isInline in interface IAccessibleElementpublic 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.